{% extends 'base.html' %} {% load static %} {% block title %}- My Orders{% endblock title %} {% block on_page_css %} {% endblock on_page_css %} {% block content %}

My Orders ({{ orders.count }})


{% for order in orders %}
ORDER ID
Order #{{ order.id }}
ORDER PLACED
{{ order.created }}
TOTAL
{{ order.total_amount }}
SHIP TO
{{ order.user.username|capfirst }}

Status: {{ order.get_status_display}}

{% for item in order.items.all %}

Qty: {{ item.quantity }} - Price: {{ item.price }} - Product: {{ item.product }} - Category: {{ item.product.category }}

{% endfor %}
{% empty %} No order Found. {% endfor %}
{% endblock content %}