{% extends 'base.html' %} {% load static %} {% load humanize %} {% block content %}

Cart

{% if cart_products %}

Shopping cart

{% include 'partials/_messages.html' %}
{% for cart_product in cart_products %} {% endfor %}
Product Price Quantity Total
{% if cart_product.product.product_image %} {{cart_product.product.title}} {% else %} {{cart_product.product.title}} {% endif %}

${{cart_product.product.price}}

Quantity
{% comment %} {% endcomment %} {% comment %} {% endcomment %}

${{cart_product.total_price|intcomma}}

Cart total
  • Subtotal${{amount|intcomma}}
  • Shipping Charge+ ${{shipping_amount}}
  • Total${{total_amount|intcomma}}
  • {% comment %}
    {% endcomment %}
Select Shipping Address
{% if addresses %} {% for address in addresses %}
Address {{forloop.counter}}
( {{address.locality}}, {{address.city}}, {{address.state}} )
{% endfor %} {% endif %}
{% comment %} For Cash on Delivery {% endcomment %}
{% else %}

Your cart is empty.

Continue shopping
{% endif %}
{% endblock content %} {% block payment-gateway %} {% endblock payment-gateway %}