Commit 1de7deef8a5ed736b15b9a6a04f9cdfdc79d4241

Authored by Alex Savenko
1 parent 0580270b

common

src/app/frontend/controllers/PageController.php
... ... @@ -479,8 +479,7 @@
479 479 'catalog_sales' => $catalog_sales,
480 480 'css' => $cssSale,
481 481 'js' => $jsSale,
482   - 'discount' => $discount,
483   - 'users_group_id' => $users_group_id
  482 + 'discount' => $discount
484 483 ]);
485 484 }
486 485 else
... ...
src/app/frontend/views/page/item.php
... ... @@ -204,7 +204,7 @@
204 204 <li>
205 205 <?php
206 206 //vip
207   - if (isset($users_group_id) && $users_group_id == 37) {
  207 + if (isset($users_group_id) && $users_group_id == 38) {
208 208 $item['price2'] = round($item['price2']*0.95, 1);
209 209 }
210 210 // скидка
... ...
src/app/frontend/views/partial/item_group.php
... ... @@ -34,20 +34,20 @@
34 34 <div class="one_item_price">
35 35 <?= $t->_("price_from") ?>
36 36 <?php
37   - // скидка
38   - if (!empty($discount)) {
39   - if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) {
40   - echo '<span style="text-decoration: line-through;"><span>'.$i['price'].'</span></span> грн<br/>';
41   - echo '<span>'.round($i['price']*(1-$discount['discount']/100), 1).'</span> грн';
42   - }
43   - else {
44   - echo '<span>'.$i['price'].'</span> грн';
45   - }
46   - }
47   - else {
48   - echo '<span>'.$i['price'].'</span> грн';
49   - }
50   - ?>
  37 +// // скидка
  38 +// if (!empty($discount)) {
  39 +// if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) {
  40 +// echo '<span style="text-decoration: line-through;"><span>'.$i['price'].'</span></span> грн<br/>';
  41 +// echo '<span>'.round($i['price']*(1-$discount['discount']/100), 1).'</span> грн';
  42 +// }
  43 +// else {
  44 +// echo '<span>'.$i['price'].'</span> грн';
  45 +// }
  46 +// }
  47 +// else {
  48 +// echo '<span>'.$i['price'].'</span> грн';
  49 +// }
  50 +// ?>
51 51 <span><?= round($i['price'], 2) ?></span> грн
52 52 </div>
53 53 <div class="one_item_buttons">
... ...