{% extends "base.html" %} {% block content %}

Your cart

{% for line in lines %}

{{ line.product.name|default:"Unavailable product" }}

Quantity: {{ line.quantity }} · ₹{{ line.total }}

{% csrf_token %}
{% csrf_token %}
{% empty %}

Your cart is empty.

{% endfor %}

Subtotal: ₹{{ subtotal }}

{% if unavailable %}

Some items are unavailable or exceed current stock. Update the cart before checkout.

{% endif %}

Review checkout

{% endblock %}