Commit 2be0665051d7ebcfcffa4f5f26ae35525dff4d58
1 parent
ff1da5e9
-Filters group by fix
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
frontend/controllers/AjaxController.php
@@ -93,8 +93,8 @@ class AjaxController extends Controller | @@ -93,8 +93,8 @@ class AjaxController extends Controller | ||
93 | $query->select(['product.*']); | 93 | $query->select(['product.*']); |
94 | $query->joinWith(['enabledVariants','brand','options', 'category']); | 94 | $query->joinWith(['enabledVariants','brand','options', 'category']); |
95 | 95 | ||
96 | -// $query->groupBy(['product.product_id', 'product_variant.price']); | ||
97 | - | 96 | + $query->groupBy(['product.product_id', 'product_variant.price']); |
97 | + | ||
98 | ProductHelper::_setQueryParams($query, $params); | 98 | ProductHelper::_setQueryParams($query, $params); |
99 | 99 | ||
100 | $query->andWhere(['!=', ProductVariant::tableName() .'.status', 1]); | 100 | $query->andWhere(['!=', ProductVariant::tableName() .'.status', 1]); |