From a04f65084ace4fe773df7874150645c7bb970765 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 30 Dec 2016 12:20:45 +0200 Subject: [PATCH] common --- src/app/frontend/views/partial/item_group.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/frontend/views/partial/item_group.php b/src/app/frontend/views/partial/item_group.php index 18f1ca3..7b7decc 100644 --- a/src/app/frontend/views/partial/item_group.php +++ b/src/app/frontend/views/partial/item_group.php @@ -37,15 +37,15 @@ // скидка if (!empty($discount)) { if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) { - echo ''.$i['price'].' грн
'; - echo ''.round($i['price']*(1-$discount['discount']/100), 1).' грн'; + echo ''.round($i['price'], 2).' грн
'; + echo ''.round($i['price']*(1-$discount['discount']/100), 2).' грн'; } else { - echo ''.$i['price'].' грн'; + echo ''.round($i['price'], 2).' грн'; } } else { - echo ''.$i['price'].' грн'; + echo ''.round($i['price'], 2).' грн'; } ?> грн -- libgit2 0.21.4