|
|
@ -33,11 +33,18 @@ |
|
|
|
<div class="product-item__price"> |
|
|
|
<div class="product-item__price"> |
|
|
|
<p>{{ post._price() }} {{ fn('get_woocommerce_currency_symbol') }}</p> |
|
|
|
<p>{{ post._price() }} {{ fn('get_woocommerce_currency_symbol') }}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{% set stock_status = post.meta('_stock_status') == 'instock' %} |
|
|
|
|
|
|
|
{% if stock_status == 'instock' %} |
|
|
|
<div class="product-item__bye"> |
|
|
|
<div class="product-item__bye"> |
|
|
|
<button class="button button--white button--100-perc open-overlay"> |
|
|
|
<button class="button button--white button--100-perc open-overlay"> |
|
|
|
{{ function('pll_e', 'Купить') }} |
|
|
|
{{ function('pll_e', 'Купить') }} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
<button data-pname="{{ post.title }}" class="to-know button--100-perc open-to-know"> |
|
|
|
|
|
|
|
<p>{{ function('pll_e', 'Узнать о поступлении') }}</p> |
|
|
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="product-item__overlay"> |
|
|
|
<div class="product-item__overlay"> |
|
|
|
<div class="product-item-overlay__header"> |
|
|
|
<div class="product-item-overlay__header"> |
|
|
@ -72,6 +79,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
{% set weight = function('get_product_info', sibling.ID, 'weight') %} |
|
|
|
{% set weight = function('get_product_info', sibling.ID, 'weight') %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% set s_product = TimberPost(sibling.ID) %} |
|
|
|
|
|
|
|
{% set s_in_stock = s_product.meta('_stock_status') == 'instock' %} |
|
|
|
|
|
|
|
{% if s_in_stock %} |
|
|
|
{% set class = '' %} |
|
|
|
{% set class = '' %} |
|
|
|
{% if weight == cur_weight %} |
|
|
|
{% if weight == cur_weight %} |
|
|
|
{% set class = 'active' %} |
|
|
|
{% set class = 'active' %} |
|
|
@ -81,6 +91,7 @@ |
|
|
|
{{ weight }} |
|
|
|
{{ weight }} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|