Commit 5ff30e4d6486f3fbde9a420a8c5d5959a7873471
1 parent
d8333790
remove
Showing
1 changed file
with
18 additions
and
17 deletions
Show diff stats
src/app/frontend/views/partial/item_group.php
@@ -34,24 +34,25 @@ | @@ -34,24 +34,25 @@ | ||
34 | <div class="one_item_price"> | 34 | <div class="one_item_price"> |
35 | <?= $t->_("price_from") ?> | 35 | <?= $t->_("price_from") ?> |
36 | <?php | 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 | + <span><?= $i['price'] ?></span> грн | ||
55 | </div> | 56 | </div> |
56 | <div class="one_item_buttons"> | 57 | <div class="one_item_buttons"> |
57 | <a href="<?= $this->seoUrl->setUrl($i['alias']) ?>" title="" class="btn grey"><?= $t->_("details") ?></a> | 58 | <a href="<?= $this->seoUrl->setUrl($i['alias']) ?>" title="" class="btn grey"><?= $t->_("details") ?></a> |