Commit d9601d988221f0d56eb97928fca86b7075ddbcf9
1 parent
154bea47
site map
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
models/ProductFrontendSearch.php
... | ... | @@ -101,12 +101,14 @@ |
101 | 101 | $dataProvider = new ActiveDataProvider( |
102 | 102 | [ |
103 | 103 | 'query' => $this->getSearchQuery($category, $params, $in_stock)->distinct() |
104 | + ->select(['product.*','product_variant.price','product_lang.title']) | |
104 | 105 | ->with('variant', 'videos','category.lang') |
105 | 106 | ->groupBy( |
106 | 107 | [ |
107 | 108 | 'product_lang.title', |
108 | 109 | 'product_variant.price', |
109 | 110 | 'product.id', |
111 | + 'product_variant.id', | |
110 | 112 | ] |
111 | 113 | ), |
112 | 114 | 'pagination' => [ | ... | ... |