Commit 9a8fc30a318f8c4a5f1c3f5f61755ddb4f34d584
1 parent
16ea0ce2
price display
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/app/frontend/views/page/changeWithSize.php
@@ -6,7 +6,8 @@ if(isset($special_user)) { | @@ -6,7 +6,8 @@ if(isset($special_user)) { | ||
6 | } else { | 6 | } else { |
7 | $data['price'] = $item['price2']; | 7 | $data['price'] = $item['price2']; |
8 | } | 8 | } |
9 | -$data['price'] = number_format($data['price']*(1-$discount['discount']/100), 2, '.', ' '); | 9 | +$data['price'] = $data['price']*(1-$discount['discount']/100); |
10 | +$data['price'] = number_format($data['price'], 2, '.', ' '); | ||
10 | 11 | ||
11 | $data['html'] = '<div class="clearfix buy_compare"> | 12 | $data['html'] = '<div class="clearfix buy_compare"> |
12 | <div class="one_item_price float">'. $t->_("price") . | 13 | <div class="one_item_price float">'. $t->_("price") . |
@@ -54,5 +55,4 @@ if(!empty($item['prices'][0])) { | @@ -54,5 +55,4 @@ if(!empty($item['prices'][0])) { | ||
54 | } | 55 | } |
55 | } | 56 | } |
56 | 57 | ||
57 | -$data['price'] = '1'; | ||
58 | echo json_encode($data); | 58 | echo json_encode($data); |
59 | \ No newline at end of file | 59 | \ No newline at end of file |