Commit 1de7deef8a5ed736b15b9a6a04f9cdfdc79d4241
1 parent
0580270b
common
Showing
3 changed files
with
16 additions
and
17 deletions
Show diff stats
src/app/frontend/controllers/PageController.php
| @@ -479,8 +479,7 @@ | @@ -479,8 +479,7 @@ | ||
| 479 | 'catalog_sales' => $catalog_sales, | 479 | 'catalog_sales' => $catalog_sales, |
| 480 | 'css' => $cssSale, | 480 | 'css' => $cssSale, |
| 481 | 'js' => $jsSale, | 481 | 'js' => $jsSale, |
| 482 | - 'discount' => $discount, | ||
| 483 | - 'users_group_id' => $users_group_id | 482 | + 'discount' => $discount |
| 484 | ]); | 483 | ]); |
| 485 | } | 484 | } |
| 486 | else | 485 | else |
src/app/frontend/views/page/item.php
| @@ -204,7 +204,7 @@ | @@ -204,7 +204,7 @@ | ||
| 204 | <li> | 204 | <li> |
| 205 | <?php | 205 | <?php |
| 206 | //vip | 206 | //vip |
| 207 | - if (isset($users_group_id) && $users_group_id == 37) { | 207 | + if (isset($users_group_id) && $users_group_id == 38) { |
| 208 | $item['price2'] = round($item['price2']*0.95, 1); | 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,20 +34,20 @@ | ||
| 34 | <div class="one_item_price"> | 34 | <div class="one_item_price"> |
| 35 | <?= $t->_("price_from") ?> | 35 | <?= $t->_("price_from") ?> |
| 36 | <?php | 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 | <span><?= round($i['price'], 2) ?></span> грн | 51 | <span><?= round($i['price'], 2) ?></span> грн |
| 52 | </div> | 52 | </div> |
| 53 | <div class="one_item_buttons"> | 53 | <div class="one_item_buttons"> |