{% extends "vendor/base.html" %} {% load i18n %} {% block vendor_content %}

{% trans 'Secure Checkout' %}

1
{% trans "Info" %}
{% if request.resolver_match.url_name != 'checkout-account' %}
{% endif %}
{% if request.resolver_match.url_name == 'checkout-account' %}
{% csrf_token %}

{% trans 'Shipping Address' %}

{% include "./includes/account_info_form.html" with account_information_form=form %}
{% endif %}
2
{% trans "Billing" %}
{% if request.resolver_match.url_name == 'checkout-review' %}
{% endif %}
{% if request.resolver_match.url_name == 'checkout-payment' %}
{% csrf_token %}

{% trans 'Billing Address' %}

{% include "./includes/billing_address_form.html" with billing_address_form=billing_address_form %}

{{invoice.shipping_address.address_1}}, {{invoice.shipping_address.address_2|default_if_none:""}}

{{invoice.shipping_address.state}}, {{invoice.shipping_address.get_country_display}},{{invoice.shipping_address.postal_code}}

{% trans 'Payment Method' %}

{% include "./includes/payment_form.html" with credit_card_form=credit_card_form %}
{% endif %}
3
{% trans 'Review' %}
{% if request.resolver_match.url_name == 'checkout-review' %}

{% trans 'Shipping Address' %}

{{user.first_name}} {{user.last_name}}

{{user.email}}

{{invoice.shipping_address.address_1}}, {{invoice.shipping_address.address_2|default_if_none:""}}

{{invoice.shipping_address.state}}, {{invoice.shipping_address.get_country_display}}, {{invoice.shipping_address.postal_code}}

{% trans 'Billing Address' %}

{{billing_address_form.cleaned_data.address_1}}, {{billing_address_form.cleaned_data.address_2|default_if_none:""}}

{{billing_address_form.cleaned_data.state}}, {{billing_address_form.instance.get_country_display}}, {{billing_address_form.cleaned_data.postal_code}}

{% trans 'Payment Method' %}

{{credit_card_form.data.full_name}}

{% trans 'Card ending in' %} {{credit_card_form.data.card_number|slice:"-4:"}}

{% csrf_token %}
{% endif %}

{% trans 'In Your Cart' %}

Edit
{% comment %}
{% endcomment %}
{% endblock %} {% block extra_js %} {% endblock %}