Commit 01b6f5fdd0722a1b26e46b7d6ed3b96f6fb002c0
1 parent
cc0ddab0
big commti
Showing
2 changed files
with
12 additions
and
2 deletions
Show diff stats
frontend/views/catalog/_product_item.php
| @@ -68,7 +68,15 @@ use yii\helpers\Url; | @@ -68,7 +68,15 @@ use yii\helpers\Url; | ||
| 68 | <div class="descr"> | 68 | <div class="descr"> |
| 69 | <div class="info"> | 69 | <div class="info"> |
| 70 | <ul class="sv"> | 70 | <ul class="sv"> |
| 71 | - | 71 | + <li class="available"> |
| 72 | + <?php if($model->variant->status == 1){?> | ||
| 73 | + снят с производства | ||
| 74 | + <?php } elseif($model->variant->stock > 0) {?> | ||
| 75 | + в наличии | ||
| 76 | + <?php } else {?> | ||
| 77 | + под заказ | ||
| 78 | + <?php } ?> | ||
| 79 | + </li> | ||
| 72 | <li><span>Бренд:</span> <?= !empty($model->brand) ? $model->brand->name : '' ?></li> | 80 | <li><span>Бренд:</span> <?= !empty($model->brand) ? $model->brand->name : '' ?></li> |
| 73 | 81 | ||
| 74 | <?php foreach($model->getActiveProperties($category->category_id) as $group): ?> | 82 | <?php foreach($model->getActiveProperties($category->category_id) as $group): ?> |
frontend/web/css/css_header.css
| @@ -11656,7 +11656,9 @@ a.preview { | @@ -11656,7 +11656,9 @@ a.preview { | ||
| 11656 | .product_detail .info_table .left_count.available { | 11656 | .product_detail .info_table .left_count.available { |
| 11657 | color: #390 | 11657 | color: #390 |
| 11658 | } | 11658 | } |
| 11659 | - | 11659 | +.available{ |
| 11660 | + color: #390; | ||
| 11661 | +} | ||
| 11660 | .product_detail .info_table .price_block { | 11662 | .product_detail .info_table .price_block { |
| 11661 | background-color: #f3f3f3; | 11663 | background-color: #f3f3f3; |
| 11662 | border-radius: 0 0 5px 5px; | 11664 | border-radius: 0 0 5px 5px; |