From 2313d4ab9f6fcc19c335fdcd395e678dea7eaf93 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 18 Jan 2017 18:19:16 +0200 Subject: [PATCH] decimals fix 2=>1 --- src/app/frontend/views/page/changeWithSize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/frontend/views/page/changeWithSize.php b/src/app/frontend/views/page/changeWithSize.php index 8f140d1..8db47d4 100644 --- a/src/app/frontend/views/page/changeWithSize.php +++ b/src/app/frontend/views/page/changeWithSize.php @@ -16,7 +16,7 @@ if (isset($users_group_id) && $users_group_id == 37) { //discount $old_price = $data['price']; $data['price'] = $data['price']*(1-$discount/100); -$data['price'] = number_format($data['price'], 2, '.', ' '); +$data['price'] = number_format($data['price'], 1, '.', ' '); if ($discount == 0) { $data['html'] = '
-- libgit2 0.21.4