diff --git a/src/app/frontend/views/page/changeWithSize.php b/src/app/frontend/views/page/changeWithSize.php index c19aa22..5a155c9 100644 --- a/src/app/frontend/views/page/changeWithSize.php +++ b/src/app/frontend/views/page/changeWithSize.php @@ -6,7 +6,8 @@ if(isset($special_user)) { } else { $data['price'] = $item['price2']; } -$data['price'] = number_format($data['price']*(1-$discount['discount']/100), 2, '.', ' '); +$data['price'] = $data['price']*(1-$discount['discount']/100); +$data['price'] = number_format($data['price'], 2, '.', ' '); $data['html'] = '
'. $t->_("price") . @@ -54,5 +55,4 @@ if(!empty($item['prices'][0])) { } } -$data['price'] = '1'; echo json_encode($data); \ No newline at end of file -- libgit2 0.21.4