|
5 | 5 | {if !$configuration.is_catalog} |
6 | 6 | <div class="product__add-to-cart-container product-add-to-cart js-product-add-to-cart"> |
7 | 7 | {block name='product_availability'} |
8 | | - <div |
9 | | - id="product-availability" |
10 | | - class="product__availability js-product-availability" |
11 | | - {if !$product.show_availability || !$product.availability_message}hidden{/if} |
12 | | - > |
13 | | - {if $product.show_availability && $product.availability_message} |
| 8 | + {if $product.show_availability && $product.availability_message} |
| 9 | + <div |
| 10 | + id="product-availability" |
| 11 | + class="product__availability js-product-availability" |
| 12 | + > |
14 | 13 | {** First, we prepare the icons and colors we want to use *} |
15 | 14 | {if $product.availability == 'in_stock'} |
16 | 15 | {assign 'availability_icon' 'E5CA'} |
|
39 | 38 | {/if} |
40 | 39 | </div> |
41 | 40 | </div> |
| 41 | + </div> |
| 42 | + {/if} |
42 | 43 |
|
43 | | - {block name='product_delivery_times'} |
44 | | - {if !$product.is_virtual} |
45 | | - {if $product.additional_delivery_times == 1} |
46 | | - {if $product.delivery_information} |
47 | | - <div class="product__delivery-infos">{$product.delivery_information}</div> |
48 | | - {/if} |
49 | | - {elseif $product.additional_delivery_times == 2} |
50 | | - {if $product.quantity > 0} |
51 | | - <div class="product__delivery-infos">{$product.delivery_in_stock}</div> |
52 | | - {* Out of stock message should not be displayed if customer can't order the product. *} |
53 | | - {elseif $product.quantity <= 0 && $product.add_to_cart_url} |
54 | | - <div class="product__delivery-infos">{$product.delivery_out_stock}</div> |
55 | | - {/if} |
56 | | - {/if} |
| 44 | + {block name='product_delivery_times'} |
| 45 | + {if !$product.is_virtual} |
| 46 | + {if $product.additional_delivery_times == 1 && $product.delivery_information} |
| 47 | + <div class="product__delivery-infos">{$product.delivery_information}</div> |
| 48 | + {elseif $product.additional_delivery_times == 2} |
| 49 | + {if $product.quantity > 0 && $product.delivery_in_stock} |
| 50 | + <div class="product__delivery-infos">{$product.delivery_in_stock}</div> |
| 51 | + {* Out of stock message should not be displayed if customer can't order the product. *} |
| 52 | + {elseif $product.quantity <= 0 && $product.add_to_cart_url && $product.delivery_out_stock} |
| 53 | + <div class="product__delivery-infos">{$product.delivery_out_stock}</div> |
57 | 54 | {/if} |
58 | | - {/block} |
| 55 | + {/if} |
59 | 56 | {/if} |
60 | | - </div> |
| 57 | + {/block} |
61 | 58 | {/block} |
62 | 59 |
|
63 | 60 | {block name='product_quantity'} |
|
0 commit comments