Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improved price displaying

Artur Smęt910fbda2bfdc
diff --git a/saleor/product/templates/product/_price_range.html b/saleor/product/templates/product/_price_range.html
index a11a8ca92b..8bdce26ca0 100644
--- a/saleor/product/templates/product/_price_range.html
+++ b/saleor/product/templates/product/_price_range.html
@@ -1,8 +1,8 @@
{% load i18n %}
+{% load gross from prices %}
{% if price_range.min_price == price_range.max_price %}
- {{ price_range.min_price.gross|floatformat:2 }} {{ price_range.min_price.currency }}
+ {% gross price_range.min_price %}
{% else %}
{% trans "Starting from" %}
- {{ price_range.min_price.gross|floatformat:2 }}
- {{ price_range.min_price.currency }}
+ {% gross price_range.min_price %}
{% endif %}
\ No newline at end of file