diff --git a/common/modules/product/helpers/ProductHelper.php b/common/modules/product/helpers/ProductHelper.php index c3edbc7..780b0a3 100755 --- a/common/modules/product/helpers/ProductHelper.php +++ b/common/modules/product/helpers/ProductHelper.php @@ -254,14 +254,14 @@ SELECT product_id FROM product_option INNER JOIN tax_option ON tax_option.tax_option_id = product_option.option_id INNER JOIN tax_group ON tax_group.tax_group_id = tax_option.tax_group_id - WHERE tax_group.alias LIKE \''. $key .'\' AND tax_option.alias IN (\'' . implode('\',\'', $param) . '\')) + WHERE tax_group.alias = \''. $key .'\' AND tax_option.alias IN (\'' . implode('\',\'', $param) . '\')) OR product_id IN ( (SELECT product_id AS products FROM product_variant_option INNER JOIN product_variant ON product_variant_option.product_variant_id = product_variant.product_variant_id INNER JOIN tax_option ON tax_option.tax_option_id = product_variant_option.option_id INNER JOIN tax_group ON tax_group.tax_group_id = tax_option.tax_group_id - WHERE tax_group.alias LIKE \''. $key .'\' AND tax_option.alias IN (\'' . implode('\',\'', $param) . '\')) + WHERE tax_group.alias = \''. $key .'\' AND tax_option.alias IN (\'' . implode('\',\'', $param) . '\')) ) ) AS table_name )' diff --git a/frontend/controllers/CatalogController.php b/frontend/controllers/CatalogController.php index f1440e3..14ecb55 100755 --- a/frontend/controllers/CatalogController.php +++ b/frontend/controllers/CatalogController.php @@ -118,7 +118,7 @@ class CatalogController extends \yii\web\Controller $groups = $category->getActiveFilters(); $groups = ArrayHelper::index($groups, null, 'name'); - $priceLimits = $productModel->priceLimits($category, $params); + //$priceLimits = $productModel->priceLimits($category, $params); /* * Greedy search for comments and rating @@ -145,7 +145,7 @@ class CatalogController extends \yii\web\Controller 'productModel' => $productModel, 'productProvider' => $productProvider, 'groups' => $groups, - 'priceLimits' => $priceLimits, + // 'priceLimits' => $priceLimits, ]); } -- libgit2 0.21.4