Commit 6f51c6758c0d4d2130015d036d81a9b25f710fb8
1 parent
74b13a7a
common
Showing
2 changed files
with
5 additions
and
4 deletions
Show diff stats
src/app/frontend/views/page/changeWithSize.php
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if(isset($special_user)) { |
4 | - $data['price'] = number_format(isset($item['prices'][$special_user['status']]) | |
4 | + $data['price'] = round(isset($item['prices'][$special_user['status']]) | |
5 | 5 | ? $item['prices'][$special_user['status']] |
6 | - : $item['price2'], 2, '.', ''); | |
6 | + : $item['price2'], 2); | |
7 | 7 | } else { |
8 | 8 | $data['price'] = $item['price2']; |
9 | 9 | } |
10 | 10 | |
11 | 11 | //vip |
12 | -if (isset($users_group_id) && $users_group_id == 37) { | |
12 | +if (isset($users_group_id) && $users_group_id == 38) { | |
13 | 13 | $data['price'] = round($data['price']*0.95, 1); |
14 | 14 | } |
15 | 15 | |
16 | 16 | //discount |
17 | 17 | $old_price = $data['price']; |
18 | 18 | $data['price'] = $data['price']*(1-$discount/100); |
19 | -$data['price'] = number_format($data['price'], 2, '.', ' '); | |
19 | +$data['price'] = round($data['price'], 2); | |
20 | 20 | if ($discount == 0) { |
21 | 21 | $data['html'] = |
22 | 22 | '<div class="clearfix buy_compare"> | ... | ... |