{% extends "vendor/base.html" %} {% load static %} {% block extra_css %} {% endblock %} {% block extra_head_js %} {% endblock %} {% block content %} {% for item in object.order_items.all %} {% endfor %}
# Item Price Quantity Total
{{ forloop.counter }} {{item.name}} ${{item.price|floatformat:2}} {{item.quantity}} ${{item.total|floatformat:2}}
Subtotal ${{ object.subtotal|floatformat:2 }}
Sales Tax {% if object.tax == None %}TBD{% else %}${{ object.tax|floatformat:2 }}{% endif %}
Shipping {% if object.shipping == None %}TBD{% else %}${{ object.shipping|floatformat:2 }}{% endif %}
Total {% if object.total == None %}TBD{% else %}${{ object.total|floatformat:2 }}{% endif %}
{% comment %} Purchase {% endcomment %} {% comment %} Purchase {% endcomment %} {% comment %} {% endcomment %}
{% comment %} {% endcomment %}

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.

Your cart 3

{% comment %}
{% endcomment %}

Billing address

Valid first name is required.
Valid last name is required.
@
Your username is required.
Please enter a valid email address for shipping updates.
Please enter your shipping address.
Please select a valid country.
Please provide a valid state.
Zip code required.


Payment

{% comment %}
{% endcomment %}
Full name as displayed on card
Name on card is required
{% comment %} {% endcomment %} {% csrf_token %} {% comment %} {% endcomment %}
{% comment %} {% endcomment %} {% comment %} {% endcomment %}

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