{% extends "checkout/layout.html" %} {% load currency_filters %} {% load thumbnail %} {% load i18n %} {% load purchase_info_tags %} {% load staticfiles %} {% load checkout_tags %} {% load mathfilters %} {% block title %} {% trans "Checkout" %} | {{ block.super }} {% endblock %} {% block checkout_nav %} {% include 'checkout/nav.html' %} {% endblock %} {% block content %} {% if error %}
{{ error }}
{% endif %}
{% block order_contents %}
{% block order_contents_actions %} {% trans "Edit order contents" %} {% endblock %}

{% trans "Order Summary" %}

{% trans "Item" %}

{% trans "Qty" %}

{% trans "Price" %}

{% for line in basket.all_lines %} {% purchase_info_for_line request line as session %}
{{ line.product.get_title }} {% for item in line.product.attribute_values.all %} {% if item.attribute.use_for_variations %} {{ item.attribute }}: {{ item.value }} {% endif %} {% endfor %} {% for attribute in line.attributes.all %} {% if attribute.option.code == 'subscription-interval' %} {% if line.product.subscription == True %} Next shipping & billing date: {% next_shipping_day attribute.value %} {% endif %} {% elif attribute.option.code == 'surprise' %} {% if line.product.subscription == True %} {{ attribute.option.name }}: {% if attribute.value %}Yes{% else %}No{% endif %} {% endif %} {% else %} {{ attribute.option.name }}: {{ attribute.value }} {% endif %} {% endfor %} {# {{ session.availability.message }} #}
x {{ line.quantity }}

{% if not show_tax_separately and line.is_tax_known %} {{ line.line_price_incl_tax|currency:basket.currency }} {% else %} {{ line.line_price_excl_tax|currency:basket.currency }} {% endif %}

{% endfor %}

{% include 'basket/partials/basket_totals.html' %}
{% endblock order_contents %}
{# You will almost certainly want to override this block to provide a payment summary #} {% block payment_method %}

{% trans "Payment Details" %}

{% if stripe_card %}
Card: {{ stripe_card.brand }} - **** **** **** {{ stripe_card.last_digits }}
Expiry: {{ stripe_card.expiry }}
{% if account and account.balance < total_amount.incl_tax %} {{ total_amount.incl_tax|sub:account.balance|currency:basket.currency }} {% elif account and account.balance > total_amount.incl_tax %} {% else %} {{ total_amount.incl_tax|currency:basket.currency }} {% endif %}
{% endif %} {% if account %}
Account Credit
{% if stripe_card %} {{ account.balance|currency:basket.currency }} {% else %} {{ total_amount.incl_tax|currency:basket.currency }} {% endif %}
{% endif %}
{% endblock payment_method %} {% block shipping_address_preview %}

{% trans "Shipping Details" %}

{% if shipping_address %}
{% block shipping_address_actions %} {% trans "Change" %} {% endblock %}
{% for field in shipping_address.active_address_fields %} {{ field }}
{% endfor %}
{% if shipping_address.phone_number %}
{% trans "Phone" %}: {{ shipping_address.phone_number }} {% if guest_email %}
{% trans "Email" %}: {{ guest_email }} {% endif %}
{% endif %} {% if shipping_address.notes %}
{% trans "Instructions" %}

{{ shipping_address.notes|linebreaks }}

{% endif %} {% if shipping_method %} {% block shipping_method_actions %} {% endblock %}
{{ shipping_method.name }} {% if shipping_method.description %} - {{ shipping_method.description|safe }} {% endif %}
{% endif %}
{% endif %}
{% endblock shipping_address_preview %} {% block place_order %} {% endblock place_order %}
{% block shipping_address %} {% endblock shipping_address %} {% block shipping_method %} {% endblock shipping_method %} {% block payment_details %} {% endblock payment_details %}
{% endblock content %}