Commit d9601d988221f0d56eb97928fca86b7075ddbcf9

Authored by Administrator
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,12 +101,14 @@
101 $dataProvider = new ActiveDataProvider( 101 $dataProvider = new ActiveDataProvider(
102 [ 102 [
103 'query' => $this->getSearchQuery($category, $params, $in_stock)->distinct() 103 'query' => $this->getSearchQuery($category, $params, $in_stock)->distinct()
  104 + ->select(['product.*','product_variant.price','product_lang.title'])
104 ->with('variant', 'videos','category.lang') 105 ->with('variant', 'videos','category.lang')
105 ->groupBy( 106 ->groupBy(
106 [ 107 [
107 'product_lang.title', 108 'product_lang.title',
108 'product_variant.price', 109 'product_variant.price',
109 'product.id', 110 'product.id',
  111 + 'product_variant.id',
110 ] 112 ]
111 ), 113 ),
112 'pagination' => [ 114 'pagination' => [