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
src/app/frontend/views/page/item.php
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"> | ... | ... |