{% extends 'dashboard/base.html' %} {% load humanize %} {% block title %}Order #{{ order.order_number }}{% endblock %} {% block page_title %}Order #{{ order.order_number }}{% endblock %} {% block content %}
Order Items ({{ order.items.count }})
{% for item in order.items.all %} {% endfor %}
Product Size/Color Qty Unit Price Subtotal
{% if item.product and item.product.image %}
{% else %}
{% endif %}
{{ item.product_name }}
{{ item.size|default:"—" }} / {{ item.color|default:"—" }} {{ item.quantity }} ₦{{ item.product_price|floatformat:0|intcomma }} ₦{{ item.subtotal|floatformat:0|intcomma }}
Subtotal₦{{ order.subtotal|floatformat:0|intcomma }}
{% if order.discount_amount > 0 %}
Discount{% if order.coupon %} ({{ order.coupon.code }}){% endif %} −₦{{ order.discount_amount|floatformat:0 }}
{% endif %}
Delivery ({{ order.get_delivery_option_display }}) ₦{{ order.delivery_cost|floatformat:0 }}
Total₦{{ order.total|floatformat:0 }}
Shipping Address
Customer
{{ order.full_name }}
{{ order.email }}
{{ order.phone }}
Address
{{ order.address }}
{{ order.city }}, {{ order.state }}{% if order.postal_code %} {{ order.postal_code }}{% endif %}
{{ order.country }}
{% if order.notes %}
Order Notes
{{ order.notes }}
{% endif %}
Update Order
{% csrf_token %}
Payment
Method {{ order.get_payment_method_display }}
Status {% if order.is_paid %}Paid{% else %}Pending{% endif %}
{% if order.payment_ref %}
Reference {{ order.payment_ref }}
{% endif %}
Order Date {{ order.created_at|date:"M d, Y" }}
Customer Profile
{% if order.user %}
{{ order.user.first_name|first|upper|default:order.user.username|first|upper }}
{{ order.user.get_full_name|default:order.user.username }}
{{ order.user.email }}
{{ order.user.orders.count }} total order{{ order.user.orders.count|pluralize }}
View Customer {% else %}
G
Guest Checkout
{{ order.email }}

This transaction was completed without creating an account profile.

{% endif %}
{% endblock %}