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