{% load i18n %} {% load currency_filters %}
{% with offer_discounts=basket.offer_discounts voucher_discounts=basket.grouped_voucher_discounts %} {% if offer_discounts or voucher_discounts %} {# Basket total will be discounted so we show a before and after version #} {% if offer_discounts %} {% for discount in offer_discounts %} {% endfor %} {% endif %} {% if voucher_discounts %} {% for discount in voucher_discounts %} {% endfor %} {% endif %} {% else %} {# No discounts to basket #} {% endif %} {% endwith %} {% if not shipping_method.is_discounted %} {% else %} {# As shipping is discounted, we break it down into its original charge and a discount #} {% with discount=shipping_method.get_discount %} {% endwith %} {% endif %} {% if basket.post_order_actions %} {% for discount in basket.post_order_actions %} {% endfor %} {% endif %}

{% trans "Basket" %}

{% trans "Basket total (before discounts)" %} {{ basket.total_incl_tax_excl_discounts|currency }}
{% trans "Discount" %} {{ discount.name }} {% if discount.description %}
{{ discount.description }} {% endif %}
-{{ discount.discount|currency }}

{% trans "Vouchers" %}

{{ discount.voucher.name }} ({{ discount.voucher.code }}) {% if editable %}
{% csrf_token %}
{% endif %}
-{{ discount.discount|currency }}
{% trans "Basket total (after discounts)" %} {{ basket.total_incl_tax|currency }}
{% trans "Basket total" %} {{ basket.total_incl_tax|currency }}
 

{% trans "Shipping" %}

{% if shipping_methods|length > 1 and editable %} {% trans "Alternative shipping methods can be chosen during checkout" %} {% endif %}
{% trans "Shipping" %} - {{ shipping_method.name }} {{ shipping_method.basket_charge_incl_tax|currency }}
{% trans "Shipping method" %} {{ shipping_method.name }}
{% trans "Shipping total (before discounts)" %} {{ shipping_method.basket_charge_incl_tax_before_discount|currency }}
{% trans "Discount" %} {{ discount.name }} -{{ discount.discount|currency }}
{% trans "Shipping total (after discounts)" %} {{ shipping_method.basket_charge_incl_tax|currency }}
 

{% trans "Post order actions" %}

{% trans "These will be applied once your order is placed." %}
{{ discount.name }}

{{ discount.description }}

 

{% trans "Order total" %}

{{ order_total_incl_tax|currency }}