Skip to content

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

Fix voucher displayed amount

Krzysztof Wolskie1f5a02c8943
diff --git a/templates/checkout/snippets/voucher-form.html b/templates/checkout/snippets/voucher-form.html
index 99df5e470e..e5d93d4ee8 100644
--- a/templates/checkout/snippets/voucher-form.html
+++ b/templates/checkout/snippets/voucher-form.html
@@ -1,7 +1,6 @@
{% load bootstrap_field bootstrap_button bootstrap_icon from bootstrap3 %}
{% load trans from i18n %}
{% load gross from prices_i18n %}
-{% load discount_amount_for from prices %}
{% if form %}
{% if discount %}
@@ -18,7 +17,7 @@
</form>
<div class="float-right">
- {% gross discount|discount_amount_for:total %}
+ - {% gross discount.amount %}
</div>
{% else %}
<form action="{{ request.path }}?next={{ request.path }}"