{% extends "base.html" %} {% block styles %} {% endblock %} {% block content %}

Order #{{ order.id }}

Order Date: {{ order.created_at.strftime('%Y-%m-%d %H:%M') }}

Status: {{ order.status|title }}

Order Items

{% if order.items %} {% for item in order.items %} {% endfor %}
Product Quantity Price Subtotal
{{ item.product.name }}
{{ item.product.name }}
{% if item.selected_size or item.selected_color %}
{% if item.selected_size %}Size: {{ item.selected_size }}{% endif %} {% if item.selected_color %} | Color: {{ item.selected_color }}{% endif %}
{% endif %}
{{ item.quantity }} ${{ "%.2f"|format(item.product.price) }} ${{ "%.2f"|format(item.product.price * item.quantity) }}
Subtotal: ${{ "%.2f"|format(order.items|sum(attribute='product.price') * order.items|sum(attribute='quantity')) }}
Shipping: Free
Total: ${{ "%.2f"|format(order.items|sum(attribute='product.price') * order.items|sum(attribute='quantity')) }}
{% else %}

No items in this order.

{% endif %}
← Back to My Orders
{% endblock %}