Commit b2796072c8ec2ba1397423e1985fdc1ceaa615c8

Authored by Alex Savenko
1 parent 0e53585e

search fix

src/app/frontend/controllers/PageController.php
@@ -1429,7 +1429,7 @@ @@ -1429,7 +1429,7 @@
1429 $i['price'] = $i['price2']; 1429 $i['price'] = $i['price2'];
1430 $i['price'] = round($i['price']*(1-$users_group_discount/100), 1); 1430 $i['price'] = round($i['price']*(1-$users_group_discount/100), 1);
1431 $i['type_id'] = $i['type']; 1431 $i['type_id'] = $i['type'];
1432 - $i['id'] = $i['group_id']; 1432 + //$i['id'] = $i['group_id'];
1433 1433
1434 $i['options_'] = $this->etc->hstore2arr($i['options']); 1434 $i['options_'] = $this->etc->hstore2arr($i['options']);
1435 1435
src/app/frontend/views/partial/item_group.php
@@ -42,10 +42,6 @@ @@ -42,10 +42,6 @@
42 <div class="one_item_price"> 42 <div class="one_item_price">
43 <?= $t->_("price_from") ?> 43 <?= $t->_("price_from") ?>
44 <?php 44 <?php
45 - //vip  
46 - if(isset($users_group_id) && $users_group_id == '37') {  
47 - $i['price'] = round($i['price']*0.95, 1);  
48 - }  
49 //discount 45 //discount
50 if (!empty($discount)) { 46 if (!empty($discount)) {
51 if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) { 47 if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) {