{% extends "base.html" %} {% block title %}Корзина{% endblock %} {% block content %}

Корзина

{% if items %}
{% for item in items %}
{{ item.name }}

{{ item.name }}

{{ "{:,.0f}".format(item.price).replace(',', ' ') }} ₽

{{ item.quantity }}
{{ "{:,.0f}".format(item.price * item.quantity).replace(',', ' ') }} ₽
{% endfor %}

Итого

Товаров: {{ cart_count }}
Сумма: {{ "{:,.0f}".format(total).replace(',', ' ') }} ₽
Оформить заказ
{% else %}
🛒

Ваша корзина пуста

Перейти в каталог
{% endif %}
{% endblock %}