{% extends "shop/base.html" %} {% load static %} {% load i18n %} {% block title %} {% trans "Your shopping cart" %} {% endblock %} {% block content %}

{% trans "Your shopping cart" %}

{% for item in cart %} {% with product=item.product %} {% endwith %} {% endfor %} {% if cart.coupon %} {% blocktrans with code=cart.coupon.code discount=cart.coupon.discount %} {% endblocktrans %} {% endif %}
{% trans "Image" %} {% trans "Product" %} {% trans "Quantity" %} {% trans "Remove" %} {% trans "Unit price" %} {% trans "Price" %}
{{ product.name }}
{{ item.update_quantity_form.quantity }} {{ item.update_quantity_form.override }} {% csrf_token %}
{% csrf_token %}
${{ item.price }} ${{ item.total_price }}
{% trans "Subtotal" %} ${{ cart.get_total_price|floatformat:2 }}
"{{ code }}" coupon ({{ discount }}% off) - ${{ cart.get_discount|floatformat:2 }}
{% trans "Total" %} ${{ cart.get_total_price_after_discount|floatformat:2 }}
{% if recommended_products %}

{% trans "People who bought this also bought" %}

{% for p in recommended_products %}

{{ p.name }}

{% endfor %}
{% endif %}

{% trans "Apply a coupon" %}:

{{ coupon_apply_form }} {% csrf_token %}

{% trans "Continue shopping" %} {% trans "Checkout" %}

{% endblock %}