{% extends 'shop/base.html' %} {% load static %} {% block title %} Your Shopping Cart {% endblock %} {% block content %}

Your Shopping Cart {% with totail_items=cart|length %} {% if cart|length > 0 %} My Shopping Order: {{ totail_items }} item {{ totail_items|pluralize }}, Kshs. {{ cart.get_total_price }} {% else %} Your cart is empty. {% endif %} {% endwith %}

{% for item in cart %} {% with product=item.product %} {% endwith %} {% endfor %}
Image Product Quantity Remove Unit Price Price
... {{ product.name }}
{% csrf_token %} {{ item.update_quantity_form.quantity }} {{ item.update_quantity_form.update }}
Remove kshs. {{ item.price }} kshs. {{ item.total_price }}
Total kshs. {{ cart.get_total_price }}

Continue Shopping Checkout

{% endblock %}