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

🛒 Your Shopping Cart

{% if cart and cart.cart_items.all %} {% for item in cart.cart_items.all %} {% endfor %}
Book Price Quantity Total Action
{{ item.book.title }} Ksh {{ item.book.discounted_price }}
{% csrf_token %}
Ksh {{ item.total_price }}
{% csrf_token %}

Total: Ksh {{ cart.total_price }}

Proceed to Checkout {% else %}

Your cart is empty. Continue shopping

{% endif %}
{% endblock %}