Commit d54ef4692e76fb6bc0cbb1f4e1cc3660716c1a16
1 parent
a92a8149
Filter fixing
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
common/modules/product/models/Category.php
... | ... | @@ -270,8 +270,7 @@ class Category extends \yii\db\ActiveRecord |
270 | 270 | ->innerJoin('product_variant', 'product_variant.product_id = product.product_id') |
271 | 271 | ->innerJoin('tax_value_string', 'tax_value_string.tax_option_id = tax_option.tax_option_id') |
272 | 272 | ->where(['product_category.category_id' => $this->category_id, 'tax_group.is_filter' => TRUE]) |
273 | - ->andWhere(['!=', 'product_variant.stock', 0]) | |
274 | - ->orderBy('tax_group_sort, tax_option_sort'); | |
273 | + ->andWhere(['!=', 'product_variant.stock', 0]); | |
275 | 274 | $query3 = (new Query()) |
276 | 275 | ->select('*') |
277 | 276 | ->from(['subquery' => $query1->union($query2)]) | ... | ... |