Commit c602652ebd92c5cec545d09115ddba416d8b1343

Authored by Alex Savenko
2 parents 6bc4afbc 3f8fb5b8

Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
src/app/frontend/views/page/changeWithSize.php
@@ -6,12 +6,16 @@ if(isset($special_user)) { @@ -6,12 +6,16 @@ if(isset($special_user)) {
6 } else { 6 } else {
7 $data['price'] = $item['price2']; 7 $data['price'] = $item['price2'];
8 } 8 }
  9 +$old_price = $data['price'];
9 $data['price'] = $data['price']*(1-$discount/100); 10 $data['price'] = $data['price']*(1-$discount/100);
10 $data['price'] = number_format($data['price'], 2, '.', ' '); 11 $data['price'] = number_format($data['price'], 2, '.', ' ');
11 12
12 $data['html'] = '<div class="clearfix buy_compare"> 13 $data['html'] = '<div class="clearfix buy_compare">
13 <div class="one_item_price float">'. $t->_("price") . 14 <div class="one_item_price float">'. $t->_("price") .
14 - ' <span>' . $data['price'] . '</span> грн'; 15 + '<span style="text-decoration: line-through;"><span>' . $old_price . '</span> грн</span>
  16 + <br/>
  17 + <span>' . $data['price'] . '</span> грн
  18 +';
15 19
16 $data['html'] .= '</ul></div><div data-group_id="' . $item['group_id'] .'" class="one_item_buttons float">'; 20 $data['html'] .= '</ul></div><div data-group_id="' . $item['group_id'] .'" class="one_item_buttons float">';
17 21