SwiftCart
{% if request.endpoint == 'web.home' %} {% endif %}
My Cart ({{ session.cart|length if session.cart else 0 }})
{% if session.cart %} {% for prod_id, item in session.cart.items() %}
{{ item.name }}

Qty: {{ item.qty }}

{{ currency }} {{ "{:,.0f}".format(item.price * item.qty) }}

{% endfor %} {% if recommendations %}
Smart Picks
You may also like
{% for rec in recommendations %}
{{ rec.name }}

{{ currency }} {{ "{:,.0f}".format(rec.discount_price if rec.discount_price > 0 else rec.price) }}

Add
{% endfor %}
{% endif %}
Subtotal
{{ currency }} {{ "{:,.0f}".format(total_price if total_price else 0) }}
Proceed to Checkout
{% else %}

Your cart is empty

Start Shopping
{% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %} {% endfor %}
{% endif %} {% endwith %} {% block content %}{% endblock %}