diff --git a/common/modules/product/models/Category.php b/common/modules/product/models/Category.php index b692114..0e92208 100755 --- a/common/modules/product/models/Category.php +++ b/common/modules/product/models/Category.php @@ -247,7 +247,7 @@ class Category extends \yii\db\ActiveRecord ->innerJoin('product', 'product.product_id = product_variant.product_id') ->innerJoin('product_category', 'product_category.product_id = product.product_id') ->innerJoin('tax_value_string', 'tax_value_string.tax_option_id = tax_option.tax_option_id') - ->where(['product_category.category_id' => $this->category_id]) + ->where(['product_category.category_id' => $this->category_id, 'tax_group.is_filter' => TRUE]) ->andWhere(['!=', 'product_variant.stock', 0]); $query2 = (new Query()) @@ -269,7 +269,7 @@ class Category extends \yii\db\ActiveRecord ->innerJoin('product_category', 'product_category.product_id = product.product_id') ->innerJoin('product_variant', 'product_variant.product_id = product.product_id') ->innerJoin('tax_value_string', 'tax_value_string.tax_option_id = tax_option.tax_option_id') - ->where(['product_category.category_id' => $this->category_id]) + ->where(['product_category.category_id' => $this->category_id, 'tax_group.is_filter' => TRUE]) ->andWhere(['!=', 'product_variant.stock', 0]) ->orderBy('tax_group_sort, tax_option_sort'); $query3 = (new Query()) -- libgit2 0.21.4