Commit 1ba216b98bc49bf9c339300ce20a20c5595d4be2
Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena
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 | 6 | } else { |
7 | 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 | 12 | $data['html'] = '<div class="clearfix buy_compare"> |
12 | 13 | <div class="one_item_price float">'. $t->_("price") . |
... | ... | @@ -54,5 +55,4 @@ if(!empty($item['prices'][0])) { |
54 | 55 | } |
55 | 56 | } |
56 | 57 | |
57 | -$data['price'] = '1'; | |
58 | 58 | echo json_encode($data); |
59 | 59 | \ No newline at end of file | ... | ... |