Commit c9440a83934e14572f5413f641636cb5fc37d116

Authored by Administrator
1 parent 1504a699

big commti

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