Commit fcae685fc53e947c25d65fa0d2a88674a168ebeb
Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/app/frontend/views/partial/item_group.php
@@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
35 | <?= $t->_("price_from") ?> | 35 | <?= $t->_("price_from") ?> |
36 | <?php if (isset($discount) && $discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) { | 36 | <?php if (isset($discount) && $discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) { |
37 | echo '<span style="text-decoration: line-through;"><span>'.$i['price'].'</span></span> грн<br/>'; | 37 | echo '<span style="text-decoration: line-through;"><span>'.$i['price'].'</span></span> грн<br/>'; |
38 | - echo '<span>'.round($i['price']*(1-$discount/100), 1).'</span> грн'; | 38 | + echo '<span>'.round($i['price']*(1-$discount['discount']/100), 1).'</span> грн'; |
39 | } | 39 | } |
40 | else { | 40 | else { |
41 | echo '<span>'.$i['price'].'</span> грн'; | 41 | echo '<span>'.$i['price'].'</span> грн'; |