Commit 2c9e2e226c884dd42397fd2f65d27b3a50be9abc
1 parent
8131e3ba
item_group view
Showing
1 changed file
with
17 additions
and
17 deletions
Show diff stats
src/app/frontend/views/partial/item_group.php
... | ... | @@ -34,23 +34,23 @@ |
34 | 34 | <div class="one_item_price"> |
35 | 35 | <?= $t->_("price_from") ?> |
36 | 36 | <?php |
37 | -// //vip | |
38 | -// if(isset($users_group_id) && $users_group_id == '37') { | |
39 | -// $i['price'] = round($i['price']*0.95, 1); | |
40 | -// } | |
41 | -// // скидка | |
42 | -// if (!empty($discount)) { | |
43 | -// if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) { | |
44 | -// echo '<span style="text-decoration: line-through;"><span>'.$i['price'].'</span></span> грн<br/>'; | |
45 | -// echo '<span>'.round($i['price']*(1-$discount['discount']/100), 1).'</span> грн'; | |
46 | -// } | |
47 | -// else { | |
48 | -// echo '<span>'.$i['price'].'</span> грн'; | |
49 | -// } | |
50 | -// } | |
51 | -// else { | |
52 | -// echo '<span>'.$i['price'].'</span> грн'; | |
53 | -// } | |
37 | + //vip | |
38 | + if(isset($users_group_id) && $users_group_id == '37') { | |
39 | + $i['price'] = round($i['price']*0.95, 1); | |
40 | + } | |
41 | + // скидка | |
42 | + if (!empty($discount)) { | |
43 | + if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) { | |
44 | + echo '<span style="text-decoration: line-through;"><span>'.$i['price'].'</span></span> грн<br/>'; | |
45 | + echo '<span>'.round($i['price']*(1-$discount['discount']/100), 1).'</span> грн'; | |
46 | + } | |
47 | + else { | |
48 | + echo '<span>'.$i['price'].'</span> грн'; | |
49 | + } | |
50 | + } | |
51 | + else { | |
52 | + echo '<span>'.$i['price'].'</span> грн'; | |
53 | + } | |
54 | 54 | ?> |
55 | 55 | </div> |
56 | 56 | <div class="one_item_buttons"> | ... | ... |