From 13b04c5bc43a875742e5360acb148db5136fd268 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Sat, 26 Nov 2016 17:14:52 +0200 Subject: [PATCH] add variantSku --- models/ProductFrontendSearch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/ProductFrontendSearch.php b/models/ProductFrontendSearch.php index 9f3175e..47c6e3e 100755 --- a/models/ProductFrontendSearch.php +++ b/models/ProductFrontendSearch.php @@ -118,7 +118,8 @@ $query = $category->getProducts(); } else { - $query = Product::find(); + $query = Product::find() + ->joinWith(['category','category.lang']); } $query->select([ 'product.*' ]); -- libgit2 0.21.4