Commit 10ac5ef9d5ad2f2dfd174d5fd74a5143e8478c4c
1 parent
067092f7
-
Showing
3 changed files
with
4 additions
and
3 deletions
Show diff stats
frontend/models/ProductFrontendSearch.php
@@ -51,7 +51,7 @@ class ProductFrontendSearch extends Product { | @@ -51,7 +51,7 @@ class ProductFrontendSearch extends Product { | ||
51 | } else { | 51 | } else { |
52 | $query = Product::find(); | 52 | $query = Product::find(); |
53 | } | 53 | } |
54 | - $query->with(['variant', 'variant.image', 'brand', 'brand.brandName', 'category', 'category.categoryName']); | 54 | + $query->with(['variant', 'brand', 'brand.brandName', 'category', 'category.categoryName']); |
55 | 55 | ||
56 | $query->groupBy('product.product_id'); | 56 | $query->groupBy('product.product_id'); |
57 | 57 |
frontend/views/catalog/product.php
@@ -170,7 +170,7 @@ $this->registerJs (" | @@ -170,7 +170,7 @@ $this->registerJs (" | ||
170 | <div class="content"> | 170 | <div class="content"> |
171 | <div class="pic"> | 171 | <div class="pic"> |
172 | <center> | 172 | <center> |
173 | - <a href="#" rel="shadowbox[gal]" id="picoriginal"><?= \common\components\artboximage\ArtboxImageHelper::getImage($product->imageUrl, 'product_view',['id'=>'pic'])?></a> | 173 | + <a href="#" rel="shadowbox[gal]" id="picoriginal"><?= \common\components\artboximage\ArtboxImageHelper::getImage($product->variant->imageUrl, 'product_view',['id'=>'pic'])?></a> |
174 | </center> | 174 | </center> |
175 | </div> | 175 | </div> |
176 | <ul class="product_colors"> | 176 | <ul class="product_colors"> |
frontend/views/catalog/products.php
@@ -154,7 +154,7 @@ $this->registerJsFile (Yii::getAlias('@web/js/ion.rangeSlider.js')); | @@ -154,7 +154,7 @@ $this->registerJsFile (Yii::getAlias('@web/js/ion.rangeSlider.js')); | ||
154 | <div class="content"> | 154 | <div class="content"> |
155 | <h1><?= $category->name ?></h1> | 155 | <h1><?= $category->name ?></h1> |
156 | <div class="sort_menu"> | 156 | <div class="sort_menu"> |
157 | - | 157 | +<?php /* |
158 | <div class="sort_block"> | 158 | <div class="sort_block"> |
159 | <span>Сортировка:</span> | 159 | <span>Сортировка:</span> |
160 | <?= \yii\widgets\LinkSorter::widget([ | 160 | <?= \yii\widgets\LinkSorter::widget([ |
@@ -165,6 +165,7 @@ $this->registerJsFile (Yii::getAlias('@web/js/ion.rangeSlider.js')); | @@ -165,6 +165,7 @@ $this->registerJsFile (Yii::getAlias('@web/js/ion.rangeSlider.js')); | ||
165 | ]); | 165 | ]); |
166 | ?> | 166 | ?> |
167 | </div> | 167 | </div> |
168 | + */?> | ||
168 | </div> | 169 | </div> |
169 | <div class="products pn"> | 170 | <div class="products pn"> |
170 | <ul> | 171 | <ul> |