From ed6cd945cfda685c5de82dc7c5614e180c256c1e Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 26 Oct 2016 23:38:30 +0300 Subject: [PATCH] big commti --- common/modules/product/helpers/ProductHelper.php | 3 ++- frontend/views/layouts/main.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common/modules/product/helpers/ProductHelper.php b/common/modules/product/helpers/ProductHelper.php index c5321d4..88c2b78 100755 --- a/common/modules/product/helpers/ProductHelper.php +++ b/common/modules/product/helpers/ProductHelper.php @@ -254,7 +254,8 @@ 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) . '\')) OR product_id IN ( + WHERE tax_group.alias LIKE \''. $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 diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index a54b08c..0270d61 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -258,6 +258,7 @@ use common\models\Event;
+ beginCache('articles_show')){?> Статьи
+ + endCache(); } ?>