From 37d2b3bfaa586be9e4dda8ac82866a296f5134ba Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 30 Dec 2016 12:57:46 +0200 Subject: [PATCH] common --- src/app/frontend/views/page/changeWithSize.php | 4 ++-- src/app/frontend/views/page/compareItems.php | 2 +- src/app/frontend/views/page/item.php | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/frontend/views/page/changeWithSize.php b/src/app/frontend/views/page/changeWithSize.php index ecedd46..3c80a6f 100644 --- a/src/app/frontend/views/page/changeWithSize.php +++ b/src/app/frontend/views/page/changeWithSize.php @@ -3,7 +3,7 @@ if(isset($special_user)) { $data['price'] = round(isset($item['prices'][$special_user['status']]) ? $item['prices'][$special_user['status']] - : $item['price2'], 2); + : $item['price2'], 1); } else { $data['price'] = $item['price2']; } @@ -16,7 +16,7 @@ if (isset($users_group_id) && $users_group_id == 38) { //discount $old_price = $data['price']; $data['price'] = $data['price']*(1-$discount/100); -$data['price'] = round($data['price'], 2); +$data['price'] = round($data['price'], 1); if ($discount == 0) { $data['html'] = '
diff --git a/src/app/frontend/views/page/compareItems.php b/src/app/frontend/views/page/compareItems.php index 6307e12..ff297b2 100644 --- a/src/app/frontend/views/page/compareItems.php +++ b/src/app/frontend/views/page/compareItems.php @@ -39,7 +39,7 @@ '
'.$i['title'].'
'. ''. '
'. - '
'.$t->_("price_from").' '.round($i['price2'], 2).' грн
'. + '
'.$t->_("price_from").' '.round($i['price2'], 1).' грн
'. '
'.$t->_("details").' '.$t->_("buy").' diff --git a/src/app/frontend/views/page/item.php b/src/app/frontend/views/page/item.php index 6fce9e1..428b9df 100644 --- a/src/app/frontend/views/page/item.php +++ b/src/app/frontend/views/page/item.php @@ -205,19 +205,19 @@ 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) { - echo ''.round($item['price2']*(1-$discount['discount']/100), 2).' грнUAH'; + echo ''.round($item['price2']*(1-$discount['discount']/100), 1).' грнUAH'; } else { - echo ''.round($item['price2'], 2).' грнUAH'; + echo ''.round($item['price2'], 1).' грнUAH'; } } else { - echo ''.round($item['price2'], 2).' грнUAH'; + echo ''.round($item['price2'], 1).' грнUAH'; } ?>
-- libgit2 0.21.4