Commit 1ba216b98bc49bf9c339300ce20a20c5595d4be2

Authored by Alex Savenko
2 parents c7bc04c8 9a8fc30a

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,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[&#39;prices&#39;][0])) { @@ -54,5 +55,4 @@ if(!empty($item[&#39;prices&#39;][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