{% endblock %}
{% endfor %}
{% delivery_time basket as deliverytime %}{% if deliverytime %}
{{ deliverytime|safe }}
{% endif %}
{% with offer_discounts=basket.offer_discounts voucher_discounts=basket.grouped_voucher_discounts %}
{% block discount_totals %}
{% if offer_discounts or voucher_discounts %}
{# Basket total will be discounted so we show a before and after version #}
{% trans "Basket total (before discounts)" %}
{% if basket.is_tax_known and not show_tax_separately %}
{{ basket.total_incl_tax_excl_discounts|currency:basket.currency }}
{% else %}
{{ basket.total_excl_tax_excl_discounts|currency:basket.currency }}
{% endif %}
{% for discount in offer_discounts %}
{% trans "Discount" %} {{ discount.name }}
{% if discount.description %}
{{ discount.description }}
{% endif %}
{% trans "Alternative shipping methods can be chosen during checkout" %}
{% endif %}
{% if not shipping_method.is_discounted %}
{{ shipping_method.name }}
{% if not show_tax_separately and shipping_charge.is_tax_known %}
{{ shipping_charge.incl_tax|currency:basket.currency }}
{% else %}
{{ shipping_charge.excl_tax|currency:basket.currency }}
{% endif %}
{% else %}
{% shipping_charge_discount shipping_method basket as shipping_discount %}
{% shipping_charge_excl_discount shipping_method basket as shipping_charge_excl_discount %}
{# As shipping is discounted, we break it down into its original charge and a discount #}
{% trans "Shipping method" %}
{{ shipping_method.name }}
{% trans "Shipping total (before discounts)" %}
{% if not show_tax_separately and shipping_charge_excl_discount.is_tax_known %}
{{ shipping_charge_excl_discount.incl_tax|currency:basket.currency }}
{% else %}
{{ shipping_charge_excl_discount.excl_tax|currency:basket.currency }}
{% endif %}
{# This section needs adjustment to when taxes are shown separately #}
{% trans "Discount" %} {{ shipping_method.discount_name }}
-{{ shipping_discount|currency:basket.currency }}
{% trans "Shipping total (after discounts)" %}
{% if not show_tax_separately and shipping_charge.is_tax_known %}
{{ shipping_charge.incl_tax|currency:basket.currency }}
{% else %}
{{ shipping_charge.excl_tax|currency:basket.currency }}
{% endif %}
{% endif %}
{% if surcharges %}
{% for charge in surcharges %}
{{charge.surcharge.name}}
{% if not show_tax_separately and shipping_charge.is_tax_known %}
{{ charge.price.incl_tax|currency:basket.currency }}
{% else %}
{{ charge.price.excl_tax|currency:basket.currency }}
{% endif %}