+ {% set stock_status = post.meta('_stock_status') == 'instock' %}
+
+
{% if post.date('Y-m-d') >= criteria_for_new_product %}
@@ -49,9 +50,19 @@
{{ post.title }}
-
{{ post._price() }} {{ fn('get_woocommerce_currency_symbol') }}
+
{{ post._price() }} {{ fn('get_woocommerce_currency_symbol') }}
+
+ {% if post._regular_price() and post._regular_price() > post._price() %}
+
+
+ {{ post._regular_price() }} {{ fn('get_woocommerce_currency_symbol') }}
+
+
+ - {{ ((1 - post._price() / post._regular_price()) * 100)|round(0, 'floor') }} %
+
+
+ {% endif %}
- {% set stock_status = post.meta('_stock_status') == 'instock' %}
{% if stock_status == 'instock' %}