{% extends "oscar/checkout/checkout.html" %} {% load currency_filters %} {% load i18n %} {% load shipping_tags %} {% load static %} {% block styles %} {{ block.super }} {% endblock %} {% block scripts %} {{ block.super }} {% endblock %} {% block title %} {% trans "Shipping method" %} | {{ block.super }} {% endblock %} {% block checkout_nav %} {% include 'oscar/checkout/nav.html' with step=2 %} {% endblock %} {% block checkout_title %}{% trans "Shipping method" %}{% endblock %} {% block order_contents %}{% endblock %} {% block shipping_address %}{% endblock %} {% block payment_method %}{% endblock %} {% block shipping_method %}
{% for method in method_forms %}
{% csrf_token %}

{{ method.method }}

{% if method.hint %}
{{ method.hint }}
{% endif %} {% if method.description %}

{{ method.description|safe }}

{% endif %} {% if method.is_discounted %} {% shipping_charge_discount method basket as discount %} {% blocktrans with amount=discount|currency:basket.currency name=method.discount_name %} This includes a discount of {{ amount }} as your basket qualifies for the {{ name }} offer. {% endblocktrans %} {% endif %}
{% if method.floor_number and method.is_allowed %}
{{ method.floor_number }}
{% endif %} {% if method.deliveries and method.is_allowed %}
{{ method.deliveries }}
{% endif %} {% if method.delivery_date or method.delivery_time and method.is_allowed %}
{% if method.delivery_date and method.is_allowed %} {{ method.delivery_date }} {% endif %} {% if method.delivery_time and method.is_allowed %} {{ method.delivery_time }} {% endif %}
{% endif %}
{% if method.is_allowed %} {% else %} {{ method.disallowed_reason }} {% endif %}
{% endfor %}
{% endblock shipping_method %}