diff --git a/frontend/models/ProductFrontendSearch.php b/frontend/models/ProductFrontendSearch.php index 3f3876a..55549d2 100755 --- a/frontend/models/ProductFrontendSearch.php +++ b/frontend/models/ProductFrontendSearch.php @@ -51,7 +51,7 @@ class ProductFrontendSearch extends Product { } else { $query = Product::find(); } - $query->with(['variant', 'variant.image', 'brand', 'brand.brandName', 'category', 'category.categoryName']); + $query->with(['variant', 'brand', 'brand.brandName', 'category', 'category.categoryName']); $query->groupBy('product.product_id'); diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index cf83f60..45493f0 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -170,7 +170,7 @@ $this->registerJs ("
- imageUrl, 'product_view',['id'=>'pic'])?> + variant->imageUrl, 'product_view',['id'=>'pic'])?>