Skip to content

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

Better label

Patryk Zawadzki7a66b308ab17
diff --git a/saleor/checkout/templates/checkout/details.html b/saleor/checkout/templates/checkout/details.html
index f030a7c739..898d58081e 100644
--- a/saleor/checkout/templates/checkout/details.html
+++ b/saleor/checkout/templates/checkout/details.html
@@ -75,7 +75,7 @@
{% if voucher_form %}
<tr>
- {% if not voucher %}
+ {% if voucher %}
{% with discount=checkout.get_discount %}
<td>
<form action="{% url "checkout:add-voucher" %}?next={{ request.get_full_path }}"
diff --git a/saleor/discount/forms.py b/saleor/discount/forms.py
index c448e08b37..0ffb88f482 100644
--- a/saleor/discount/forms.py
+++ b/saleor/discount/forms.py
@@ -8,5 +8,5 @@ class GetVoucherForm(forms.Form):
voucher = forms.ModelChoiceField(
queryset=Voucher.objects.all(), to_field_name='code',
- label=pgettext_lazy('voucher', 'Voucher code'),
+ label=pgettext_lazy('voucher', 'Gift card or discount code'),
widget=forms.TextInput)