diff --git a/models/ProductFrontendSearch.php b/models/ProductFrontendSearch.php index bca70b3..ab46721 100755 --- a/models/ProductFrontendSearch.php +++ b/models/ProductFrontendSearch.php @@ -101,12 +101,14 @@ $dataProvider = new ActiveDataProvider( [ 'query' => $this->getSearchQuery($category, $params, $in_stock)->distinct() + ->select(['product.*','product_variant.price','product_lang.title']) ->with('variant', 'videos','category.lang') ->groupBy( [ 'product_lang.title', 'product_variant.price', 'product.id', + 'product_variant.id', ] ), 'pagination' => [ -- libgit2 0.21.4