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 | 51 | } else { |
52 | 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 | 56 | $query->groupBy('product.product_id'); |
57 | 57 | ... | ... |
frontend/views/catalog/product.php
... | ... | @@ -170,7 +170,7 @@ $this->registerJs (" |
170 | 170 | <div class="content"> |
171 | 171 | <div class="pic"> |
172 | 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 | 174 | </center> |
175 | 175 | </div> |
176 | 176 | <ul class="product_colors"> | ... | ... |
frontend/views/catalog/products.php
... | ... | @@ -154,7 +154,7 @@ $this->registerJsFile (Yii::getAlias('@web/js/ion.rangeSlider.js')); |
154 | 154 | <div class="content"> |
155 | 155 | <h1><?= $category->name ?></h1> |
156 | 156 | <div class="sort_menu"> |
157 | - | |
157 | +<?php /* | |
158 | 158 | <div class="sort_block"> |
159 | 159 | <span>Сортировка:</span> |
160 | 160 | <?= \yii\widgets\LinkSorter::widget([ |
... | ... | @@ -165,6 +165,7 @@ $this->registerJsFile (Yii::getAlias('@web/js/ion.rangeSlider.js')); |
165 | 165 | ]); |
166 | 166 | ?> |
167 | 167 | </div> |
168 | + */?> | |
168 | 169 | </div> |
169 | 170 | <div class="products pn"> |
170 | 171 | <ul> | ... | ... |