From 0db4bacff4634017b3534b392ca102524bcbba71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20P=C5=82aczek?= Date: Thu, 21 Nov 2024 10:05:55 +0100 Subject: [PATCH 1/2] Add some bootstrap badged in place of promos count, discount percent and previous price. --- templates/productList.html.twig | 2 +- templates/template.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/productList.html.twig b/templates/productList.html.twig index a0e08d2..b8f05df 100644 --- a/templates/productList.html.twig +++ b/templates/productList.html.twig @@ -29,7 +29,7 @@ link {{ product.price.last.price | format_currency('PLN', {}, 'pl') }} - {% if product.price.last.price != product.price.last.productStandardPrice %}{{ product.price.last.productStandardPrice | format_currency('PLN', {}, 'pl') }} {{ ((1 - product.price.last.price / product.price.last.productStandardPrice)*100)|number_format(0) }}%{% else %}{% endif %} + {% if product.price.last.price != product.price.last.productStandardPrice %}{{ product.price.last.productStandardPrice | format_currency('PLN', {}, 'pl') }} {{ ((1 - product.price.last.price / product.price.last.productStandardPrice)*100)|number_format(0) }}%{% else %}{% endif %} {% endfor %} diff --git a/templates/template.html.twig b/templates/template.html.twig index bc05a88..beadfaf 100644 --- a/templates/template.html.twig +++ b/templates/template.html.twig @@ -19,7 +19,7 @@