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 | 68 | <div class="descr"> |
| 69 | 69 | <div class="info"> |
| 70 | 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 | 80 | <li><span>Бренд:</span> <?= !empty($model->brand) ? $model->brand->name : '' ?></li> |
| 73 | 81 | |
| 74 | 82 | <?php foreach($model->getActiveProperties($category->category_id) as $group): ?> | ... | ... |
frontend/web/css/css_header.css
| ... | ... | @@ -11656,7 +11656,9 @@ a.preview { |
| 11656 | 11656 | .product_detail .info_table .left_count.available { |
| 11657 | 11657 | color: #390 |
| 11658 | 11658 | } |
| 11659 | - | |
| 11659 | +.available{ | |
| 11660 | + color: #390; | |
| 11661 | +} | |
| 11660 | 11662 | .product_detail .info_table .price_block { |
| 11661 | 11663 | background-color: #f3f3f3; |
| 11662 | 11664 | border-radius: 0 0 5px 5px; | ... | ... |