{% extends "base.html" %} {% block title %}Generate Discount Codes{% endblock %} {% block content %}
{# d-block: Tabler's flex card-header would inline the title-row and the subtitle below it. #}
Generate Discount Codes
Back to List

Batch create codes with the same discount settings. Codes will be generated as PREFIX-XXXXXXXX.

{% csrf_token %}
Generation
{{ form.prefix }} {% if form.prefix.help_text %}{{ form.prefix.help_text }}{% endif %}
{{ form.count }}
{{ form.code_length }}
Discount
{{ form.discount_type }}
{{ form.value }}
{{ form.minimum_order }}
Validity
{{ form.max_uses }}
{{ form.valid_from }}
{{ form.valid_to }}
Scope
{{ form.applies_to }}
{{ form.allowed_skus }} {% if form.allowed_skus.help_text %}{{ form.allowed_skus.help_text }}{% endif %}
{% if form.errors %}
{% for field, errors in form.errors.items %} {% for error in errors %}

{{ field }}: {{ error }}

{% endfor %} {% endfor %}
{% endif %}
{% endblock %}