Commit c9440a83934e14572f5413f641636cb5fc37d116

Authored by Administrator
1 parent 1504a699

big commti

common/modules/product/helpers/ProductHelper.php
... ... @@ -254,14 +254,14 @@
254 254 SELECT product_id FROM product_option
255 255 INNER JOIN tax_option ON tax_option.tax_option_id = product_option.option_id
256 256 INNER JOIN tax_group ON tax_group.tax_group_id = tax_option.tax_group_id
257   - WHERE tax_group.alias LIKE '. $key .' AND tax_option.alias IN (' . implode(',', $param) . '))
  257 + WHERE tax_group.alias = '. $key .' AND tax_option.alias IN (' . implode(',', $param) . '))
258 258 OR product_id IN (
259 259 (SELECT product_id AS products
260 260 FROM product_variant_option
261 261 INNER JOIN product_variant ON product_variant_option.product_variant_id = product_variant.product_variant_id
262 262 INNER JOIN tax_option ON tax_option.tax_option_id = product_variant_option.option_id
263 263 INNER JOIN tax_group ON tax_group.tax_group_id = tax_option.tax_group_id
264   - WHERE tax_group.alias LIKE '. $key .' AND tax_option.alias IN (' . implode(',', $param) . '))
  264 + WHERE tax_group.alias = '. $key .' AND tax_option.alias IN (' . implode(',', $param) . '))
265 265 )
266 266 ) AS table_name
267 267 )'
... ...
frontend/controllers/CatalogController.php
... ... @@ -118,7 +118,7 @@ class CatalogController extends \yii\web\Controller
118 118  
119 119 $groups = $category->getActiveFilters();
120 120 $groups = ArrayHelper::index($groups, null, 'name');
121   - $priceLimits = $productModel->priceLimits($category, $params);
  121 + //$priceLimits = $productModel->priceLimits($category, $params);
122 122  
123 123 /*
124 124 * Greedy search for comments and rating
... ... @@ -145,7 +145,7 @@ class CatalogController extends \yii\web\Controller
145 145 'productModel' => $productModel,
146 146 'productProvider' => $productProvider,
147 147 'groups' => $groups,
148   - 'priceLimits' => $priceLimits,
  148 + // 'priceLimits' => $priceLimits,
149 149 ]);
150 150  
151 151 }
... ...