|
|
@ -101,6 +101,18 @@ |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<p class="detail-block-price__price"> |
|
|
|
<p class="detail-block-price__price"> |
|
|
|
{{ product.get_price }} {{ fn('get_woocommerce_currency_symbol') }} |
|
|
|
{{ product.get_price }} {{ fn('get_woocommerce_currency_symbol') }} |
|
|
|
|
|
|
|
{% if product.is_on_sale %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="detail-block-price__sale"> |
|
|
|
|
|
|
|
<p class="detail-block-price-sale__text"> |
|
|
|
|
|
|
|
{{ product.get_regular_price }} {{ fn('get_woocommerce_currency_symbol') }} |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p class="detail-block-price-sale__perc"> |
|
|
|
|
|
|
|
{% set discount = ((product.get_regular_price - product.get_sale_price) / product.get_regular_price * 100)|round(0, 'floor') %} |
|
|
|
|
|
|
|
{{ discount }} |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|