{% extends "base.html" %} {% block title %}Корзина{% endblock %} {% block content %} Корзина {% if items %} {% for item in items %} {{ 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 %}
{{ "{:,.0f}".format(item.price).replace(',', ' ') }} ₽
Ваша корзина пуста