{% extends "shop/base.html" %} {% load i18n %} {% block navbar %}
  • {% trans "Home" %}
  • {% trans "Checkout" %}
  • {% endblock %} {% block content %}

    {% trans "Checkout" %}

    {% trans "Please complete the following information in order to submit your order." %}

    {% if form.errors %}

    {% blocktrans count form.errors|length as count %}Please correct the following error:{% plural %}Please correct the following errors:{% endblocktrans %}

    {% endif %} {% block payment_table %} {# put your payment module specific rows here. For example, CC number. #} {% endblock %} {% block discount_table %} {% if form.discount.is_hidden %} {{ form.discount }} {% else %} {% endif %} {% if sale %}{% include "product/sale_details.html" %}{% endif %} {% endblock %} {% if form.shipping_hidden or form.shipping.field.choices|length_is:0 %} {{ form.shipping }} {% else %}

    {% trans "Discounts" %}

    {{ form.discount }}
    {% if form.discount.errors %}*** {{ form.discount.errors|join:", " }}{% endif %}

    {% trans "Shipping Information" %}

    {% block shipping_table %}
    {% if form.shipping.field.choices|length_is:1 %} {% else %} {% endif %} {{ form.shipping}} {% if form.shipping.errors %}*** {{ form.shipping.errors|join:", " }}{% endif %}
    {% endblock %} {% endif %} {% endblock %}