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

Your cart

{% for line in lines %}

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

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

{% empty %}

Your cart is empty.

{% endfor %}

Subtotal: ₹{{ subtotal }}

{% if unavailable %}

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

{% endif %} {% endblock %}