Commit aac54f2708ab0d4cd9482a11f0937458e62d6f2c

Authored by Administrator
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,14 +109,11 @@ FlipclockAsset::register($this);
109 </td> 109 </td>
110 <td> 110 <td>
111 <!-- Купить --> 111 <!-- Купить -->
112 - <?php if($product->variant->stock > 0 && $product->variant->status != 1){?> 112 + <?php if($product->variant->status != 1){?>
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> 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 <?php }else if($product->variant->status == 1){?> 114 <?php }else if($product->variant->status == 1){?>
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> 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 </td> 118 </td>
122 <td> 119 <td>
@@ -319,17 +316,11 @@ FlipclockAsset::register($this); @@ -319,17 +316,11 @@ FlipclockAsset::register($this);
319 </div> 316 </div>
320 317
321 <div class="buy_button"> 318 <div class="buy_button">
322 - <?php if($product->variant->stock > 0 && $product->variant->status != 1){?> 319 + <?php if($product->variant->status != 1){?>
323 <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> 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 <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> 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 <div class="clearfix"></div> 324 <div class="clearfix"></div>
334 </div> 325 </div>
335 326
@@ -342,7 +333,7 @@ FlipclockAsset::register($this); @@ -342,7 +333,7 @@ FlipclockAsset::register($this);
342 </div> 333 </div>
343 <div class="clearfix"></div> 334 <div class="clearfix"></div>
344 </div> 335 </div>
345 - <?php if($product->variant->stock > 0 && $product->variant->status != 1){?> 336 + <?php if($product->variant->status != 1){?>
346 <div class="follow_price"> 337 <div class="follow_price">
347 <a href="#" data-toggle="modal" data-target="#where_buy">где купить?</a> 338 <a href="#" data-toggle="modal" data-target="#where_buy">где купить?</a>
348 </div> 339 </div>
@@ -380,7 +371,7 @@ FlipclockAsset::register($this); @@ -380,7 +371,7 @@ FlipclockAsset::register($this);
380 <tr> 371 <tr>
381 <td> 372 <td>
382 <?php 373 <?php
383 - if($product->variant->stock > 0 && $product->variant->status != 1) { 374 + if($product->variant->status != 1) {
384 ?> 375 ?>
385 <div class="fast_order_form"> 376 <div class="fast_order_form">
386 <div class="error_text"></div> 377 <div class="error_text"></div>