Commit 13b04c5bc43a875742e5360acb148db5136fd268
1 parent
74c5014f
add variantSku
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
models/ProductFrontendSearch.php
| @@ -118,7 +118,8 @@ | @@ -118,7 +118,8 @@ | ||
| 118 | $query = $category->getProducts(); | 118 | $query = $category->getProducts(); |
| 119 | 119 | ||
| 120 | } else { | 120 | } else { |
| 121 | - $query = Product::find(); | 121 | + $query = Product::find() |
| 122 | + ->joinWith(['category','category.lang']); | ||
| 122 | } | 123 | } |
| 123 | 124 | ||
| 124 | $query->select([ 'product.*' ]); | 125 | $query->select([ 'product.*' ]); |