|
|
@ -2,8 +2,9 @@ |
|
|
|
{% set cur_product = fn('wc_get_product', post.id) %} |
|
|
|
{% set cur_product = fn('wc_get_product', post.id) %} |
|
|
|
{% set attrs = post.product.get_attributes() %} |
|
|
|
{% set attrs = post.product.get_attributes() %} |
|
|
|
{% set cur_weight = function('get_product_info', post.id, 'weight') %} |
|
|
|
{% set cur_weight = function('get_product_info', post.id, 'weight') %} |
|
|
|
|
|
|
|
{% set stock_status = post.meta('_stock_status') == 'instock' %} |
|
|
|
|
|
|
|
|
|
|
|
<div class="product__item"> |
|
|
|
<div class="product__item {% if not stock_status == 'instock' %}hiding{% endif %}"> |
|
|
|
<div class="product-item__label"> |
|
|
|
<div class="product-item__label"> |
|
|
|
{% if post.date('Y-m-d') >= criteria_for_new_product %} |
|
|
|
{% if post.date('Y-m-d') >= criteria_for_new_product %} |
|
|
|
<span class="product-item-label__tag product-item-label__tag--new"> |
|
|
|
<span class="product-item-label__tag product-item-label__tag--new"> |
|
|
@ -50,8 +51,18 @@ |
|
|
|
<a href="{{ post.link }}" class="product-item__title">{{ post.title }}</a> |
|
|
|
<a href="{{ post.link }}" class="product-item__title">{{ post.title }}</a> |
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if post._regular_price() and post._regular_price() > post._price() %} |
|
|
|
|
|
|
|
<div class="product-item__price-disc"> |
|
|
|
|
|
|
|
<p class="product-item__price-sale__text"> |
|
|
|
|
|
|
|
{{ post._regular_price() }} {{ fn('get_woocommerce_currency_symbol') }} |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="product-item__price-sale__perc"> |
|
|
|
|
|
|
|
- {{ ((1 - post._price() / post._regular_price()) * 100)|round(0, 'floor') }} % |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% set stock_status = post.meta('_stock_status') == 'instock' %} |
|
|
|
|
|
|
|
{% if 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"> |
|
|
|