diff --git a/frontend/models/ProductFrontendSearch.php b/frontend/models/ProductFrontendSearch.php index 861ad4a..5f966e0 100755 --- a/frontend/models/ProductFrontendSearch.php +++ b/frontend/models/ProductFrontendSearch.php @@ -54,9 +54,10 @@ class ProductFrontendSearch extends Product { } else { $query = Product::find(); } + $query->select(['product.*']); $query->joinWith(['variant', 'image', 'brand', 'brand.brandName', 'category', 'category.categoryName']); - $query->groupBy('product.product_id'); + $query->groupBy(['product.product_id', 'product_variant.price']); $dataProvider = new ActiveDataProvider([ 'query' => $query, diff --git a/frontend/views/catalog/products.php b/frontend/views/catalog/products.php index 3b0c7fe..496bc66 100755 --- a/frontend/views/catalog/products.php +++ b/frontend/views/catalog/products.php @@ -157,7 +157,7 @@ $this->registerJsFile(Yii::getAlias('@web/js/ion.rangeSlider.js'),[