{% extends "vendor/base.html" %} {% load static %} {% block extra_css %} {% endblock %} {% block extra_head_js %} {% endblock %} {% block content %}

Checkout form

Below is an example form built entirely with Bootstrap’s form controls. Each required form group has a validation state that can be triggered by attempting to submit the form without completing it.

{% comment %}
{% for order_item in invoice.order_items.all %} {% endfor %}
# Item Price Quantity Total
{{ forloop.counter }} {{ order_item.name}} {{ order_item.price}} {{ order_item.quantity}} {{ order_item.total}}
Shipping ${{ invoice.shipping }}
Tax ${{ invoice.tax }}
Total ${{ invoice.total }}
{% endcomment %}

Your cart {{ invoice.order_items.all.count}}

{% comment %}
{% endcomment %}

Billing Information

{% csrf_token %} {{ billing_address_form.as_p }} {{ credit_card_form.as_p }}
{% endblock %} {% block extra_js %} {{ google_address_form.media }} {% endblock %}