{% extends "layout.html" %} {% block title %}Login Example{% endblock %} {% block page_content %}

Hello {{ current_user.username }} here is your current cart:

{% if cart_size > 0: %}
{{ remove_form.csrf_token }}

{{ remove_form.item_id_remove.label }} {{ remove_form.item_id_remove(class = "field_order_by") }}

clear all? {{ remove_form.clear_all }} {{ remove_form.submit(class = "field_order_by") }}

You have {{ cart_size }} items in your cart

{% endif %} {% if cart_size <= 0: %}

Your cart is empty

mountains
{% endif %} {% if cart_size > 0: %}

Total price: {{ total_price }}

{% endif %} {% for item in cart_list %}
background image

{{ item.product_name }}

price: £{{ item.product_price }}

item id: {{ item.product_id }}

{% endfor %}
{% endblock %}