Commit c9e2db38fb1f19c0e420b632aef9bee552bc4737
1 parent
622a985a
add variantSku
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
models/ProductFrontendSearch.php
... | ... | @@ -100,7 +100,7 @@ |
100 | 100 | |
101 | 101 | $dataProvider = new ActiveDataProvider( |
102 | 102 | [ |
103 | - 'query' => $this->getSearchQuery($category, $params, $in_stock) | |
103 | + 'query' => $this->getSearchQuery($category, $params, $in_stock)->distinct() | |
104 | 104 | ->with('variant', 'videos','category.lang') |
105 | 105 | ->groupBy( |
106 | 106 | [ | ... | ... |