{% extends "layouts/base.html" %} {% load static %} {% block title %}My Orders - SavvyGT{% endblock %} {% include 'partials/header.html' %} {% block content %}

My Orders

{% if messages %} {% for message in messages %}

{{ message }}

{% endfor %} {% endif %} {% if purchases %}
{% for purchase in purchases %} {% endfor %}
Product Quantity Total Price Order Status
{% if purchase.product %} {{ purchase.product.name|default:'Deleted Product' }} {% else %} Deleted Product {% endif %}
{% if purchase.product %} {{ purchase.product.name|default:'Deleted Product'}} {% else %} Deleted Product {% endif %}
{{ purchase.quantity }} ${{ purchase.total_price|floatformat:2 }} {{ purchase.order_status }}
{% else %}

No purchase history found.

{% endif %}
{% endblock %}