Commit d00e5a552456f3c91f7571847b3ddce7e07a6ea1
1 parent
e30831f4
big commti
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
frontend/views/catalog/product.php
... | ... | @@ -191,11 +191,13 @@ FlipclockAsset::register($this); |
191 | 191 | </tr> |
192 | 192 | <tr> |
193 | 193 | <td class="left_count available"> |
194 | - <?php if($product->variant->stock > 0){?> | |
195 | - есть в наличии | |
194 | + <?php if($product->variant->status == 1){?> | |
195 | + снят с производства | |
196 | + <?php } elseif($product->variant->stock > 0) {?> | |
197 | + в наличии | |
196 | 198 | <?php } else {?> |
197 | 199 | под заказ |
198 | - <?php }?> | |
200 | + <?php } ?> | |
199 | 201 | </td> |
200 | 202 | <td rowspan="2" class="spacer"> </td> |
201 | 203 | <td class="right_block" rowspan="2"> | ... | ... |