Commit ed6cd945cfda685c5de82dc7c5614e180c256c1e
1 parent
de381d69
big commti
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
common/modules/product/helpers/ProductHelper.php
| @@ -254,7 +254,8 @@ | @@ -254,7 +254,8 @@ | ||
| 254 | SELECT product_id FROM product_option | 254 | SELECT product_id FROM product_option |
| 255 | INNER JOIN tax_option ON tax_option.tax_option_id = product_option.option_id | 255 | INNER JOIN tax_option ON tax_option.tax_option_id = product_option.option_id |
| 256 | INNER JOIN tax_group ON tax_group.tax_group_id = tax_option.tax_group_id | 256 | INNER JOIN tax_group ON tax_group.tax_group_id = tax_option.tax_group_id |
| 257 | - WHERE tax_group.alias LIKE \''. $key .'\' AND tax_option.alias IN (\'' . implode('\',\'', $param) . '\')) OR product_id IN ( | 257 | + WHERE tax_group.alias LIKE \''. $key .'\' AND tax_option.alias IN (\'' . implode('\',\'', $param) . '\')) |
| 258 | + OR product_id IN ( | ||
| 258 | (SELECT product_id AS products | 259 | (SELECT product_id AS products |
| 259 | FROM product_variant_option | 260 | FROM product_variant_option |
| 260 | INNER JOIN product_variant ON product_variant_option.product_variant_id = product_variant.product_variant_id | 261 | INNER JOIN product_variant ON product_variant_option.product_variant_id = product_variant.product_variant_id |
frontend/views/layouts/main.php
| @@ -258,6 +258,7 @@ use common\models\Event; | @@ -258,6 +258,7 @@ use common\models\Event; | ||
| 258 | <div class="col-md-12"> | 258 | <div class="col-md-12"> |
| 259 | <div class="row"> | 259 | <div class="row"> |
| 260 | <div class="col-md-4"> | 260 | <div class="col-md-4"> |
| 261 | + <?php if($this->beginCache('articles_show')){?> | ||
| 261 | <span class="posts-title">Статьи</span> | 262 | <span class="posts-title">Статьи</span> |
| 262 | <ul class="posts-links style"> | 263 | <ul class="posts-links style"> |
| 263 | <?php foreach(Articles::find()->all() as $article):?> | 264 | <?php foreach(Articles::find()->all() as $article):?> |
| @@ -273,6 +274,8 @@ use common\models\Event; | @@ -273,6 +274,8 @@ use common\models\Event; | ||
| 273 | <?= Html::a('Все статьи', Url::to('/articles/main'))?> | 274 | <?= Html::a('Все статьи', Url::to('/articles/main'))?> |
| 274 | <div><span></span></div> | 275 | <div><span></span></div> |
| 275 | </div> | 276 | </div> |
| 277 | + | ||
| 278 | + <?php $this->endCache(); } ?> | ||
| 276 | </div> | 279 | </div> |
| 277 | <div class="col-md-8"> | 280 | <div class="col-md-8"> |
| 278 | <?php | 281 | <?php |