Commit aac54f2708ab0d4cd9482a11f0937458e62d6f2c
1 parent
90014ee3
big commti
Showing
1 changed file
with
7 additions
and
16 deletions
Show diff stats
frontend/views/catalog/product.php
| ... | ... | @@ -109,14 +109,11 @@ FlipclockAsset::register($this); |
| 109 | 109 | </td> |
| 110 | 110 | <td> |
| 111 | 111 | <!-- Купить --> |
| 112 | - <?php if($product->variant->stock > 0 && $product->variant->status != 1){?> | |
| 112 | + <?php if($product->variant->status != 1){?> | |
| 113 | 113 | <a lang="5892" class="btn btnBuy buy_button btn-large1" data-id="<?php echo $product->variant->product_variant_id; ?>" data-toggle="modal" data-target="#buyForm">Купить</a> |
| 114 | 114 | <?php }else if($product->variant->status == 1){?> |
| 115 | 115 | <a href="#" style="background-color:dimgrey; background-image:linear-gradient(to bottom, #9d9fa0, #abafb2)" class="btn btn-large btn-default " data-id="<?php echo $product->variant->product_variant_id; ?>" >снят с производства</a> |
| 116 | - <?} | |
| 117 | - else {?> | |
| 118 | - <a href="#" style="background-color:dimgrey; background-image:linear-gradient(to bottom, #9d9fa0, #abafb2)" class="btn btn-large btn-default " data-id="<?php echo $product->variant->product_variant_id; ?>" >Под заказ</a> | |
| 119 | - <?php }?> | |
| 116 | + <?php} ?> | |
| 120 | 117 | |
| 121 | 118 | </td> |
| 122 | 119 | <td> |
| ... | ... | @@ -319,17 +316,11 @@ FlipclockAsset::register($this); |
| 319 | 316 | </div> |
| 320 | 317 | |
| 321 | 318 | <div class="buy_button"> |
| 322 | - <?php if($product->variant->stock > 0 && $product->variant->status != 1){?> | |
| 319 | + <?php if($product->variant->status != 1){?> | |
| 323 | 320 | <a href="#" class="btn btn-large buy_button" data-toggle="modal" data-id="<?php echo $product->variant->product_variant_id; ?>" data-target="#buyForm" lang="5892">Купить</a> |
| 324 | - <?php }else if($product->variant->status == 1){?> | |
| 321 | + <?php}else if($product->variant->status == 1){?> | |
| 325 | 322 | <a href="#" style="background-color:dimgrey; background-image:linear-gradient(to bottom, #9d9fa0, #abafb2)" class="btn btn-large btn-default " data-id="<?php echo $product->variant->product_variant_id; ?>" >снят с производства</a> |
| 326 | - <?} | |
| 327 | - else {?> | |
| 328 | - <a href="#" style="background-color:dimgrey; background-image:linear-gradient(to bottom, #9d9fa0, #abafb2)" class="btn btn-large btn-default " data-id="<?php echo $product->variant->product_variant_id; ?>" >Под заказ</a> | |
| 329 | - <?php }?> | |
| 330 | - | |
| 331 | - | |
| 332 | - | |
| 323 | + <?php } ?> | |
| 333 | 324 | <div class="clearfix"></div> |
| 334 | 325 | </div> |
| 335 | 326 | |
| ... | ... | @@ -342,7 +333,7 @@ FlipclockAsset::register($this); |
| 342 | 333 | </div> |
| 343 | 334 | <div class="clearfix"></div> |
| 344 | 335 | </div> |
| 345 | - <?php if($product->variant->stock > 0 && $product->variant->status != 1){?> | |
| 336 | + <?php if($product->variant->status != 1){?> | |
| 346 | 337 | <div class="follow_price"> |
| 347 | 338 | <a href="#" data-toggle="modal" data-target="#where_buy">где купить?</a> |
| 348 | 339 | </div> |
| ... | ... | @@ -380,7 +371,7 @@ FlipclockAsset::register($this); |
| 380 | 371 | <tr> |
| 381 | 372 | <td> |
| 382 | 373 | <?php |
| 383 | - if($product->variant->stock > 0 && $product->variant->status != 1) { | |
| 374 | + if($product->variant->status != 1) { | |
| 384 | 375 | ?> |
| 385 | 376 | <div class="fast_order_form"> |
| 386 | 377 | <div class="error_text"></div> | ... | ... |