diff --git a/src/templates/productList.html.twig b/src/templates/productList.html.twig index d264b9a..5781bb9 100644 --- a/src/templates/productList.html.twig +++ b/src/templates/productList.html.twig @@ -17,6 +17,7 @@ link {{ product.price.last.price }} + {% if product.price.last.price != product.price.last.productStandardPrice %}{{ product.price.last.productStandardPrice }} {{ ((1 - product.price.last.price / product.price.last.productStandardPrice)*100)|number_format(0) }}%{% else %}{% endif %} {% endfor %}