From 74b13a7aec8c03d56dea94704ecacc166e1c598c Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 29 Dec 2016 18:24:17 +0200 Subject: [PATCH] common --- src/app/frontend/views/page/item.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/frontend/views/page/item.php b/src/app/frontend/views/page/item.php index c6f34fa..1af4bd2 100644 --- a/src/app/frontend/views/page/item.php +++ b/src/app/frontend/views/page/item.php @@ -210,14 +210,14 @@ // скидка if (!empty($discount)) { if (isset($discount) && $discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) { - echo ''.number_format($item['price2']*(1-$discount['discount']/100), 2, '.', ' ').' грнUAH'; + echo ''.round($item['price2']*(1-$discount['discount']/100), 2).' грнUAH'; } else { - echo ''.number_format($item['price2'], 2, '.', ' ').' грнUAH'; + echo ''.round($item['price2'], 2).' грнUAH'; } } else { - echo ''.number_format($item['price2'], 2, '.', ' ').' грнUAH'; + echo ''.round($item['price2'], 2).' грнUAH'; } ?>
-- libgit2 0.21.4