Commit a04f65084ace4fe773df7874150645c7bb970765

Authored by Alex Savenko
1 parent 07b8525b

common

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
src/app/frontend/views/partial/item_group.php
... ... @@ -37,15 +37,15 @@
37 37 // скидка
38 38 if (!empty($discount)) {
39 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> грн';
  40 + echo '<span style="text-decoration: line-through;"><span>'.round($i['price'], 2).'</span></span> грн<br/>';
  41 + echo '<span>'.round($i['price']*(1-$discount['discount']/100), 2).'</span> грн';
42 42 }
43 43 else {
44   - echo '<span>'.$i['price'].'</span> грн';
  44 + echo '<span>'.round($i['price'], 2).'</span> грн';
45 45 }
46 46 }
47 47 else {
48   - echo '<span>'.$i['price'].'</span> грн';
  48 + echo '<span>'.round($i['price'], 2).'</span> грн';
49 49 }
50 50 ?>
51 51 <span><?= round($i['price'], 2) ?></span> грн
... ...