{% extends 'base.html' %} {% load static %} {% block extra_head %} {% endblock %} {% block content %}
{% if order.payment_status != 'Paid' and order.payment_method != 'Cash on Delivery' %}
Payment still required

This order has been created but has not been marked as paid yet.

Complete Payment
{% elif order.payment_method == 'Cash on Delivery' and order.payment_status != 'Paid' %}
Cash on delivery selected

Payment will be collected when the order is delivered, or you can switch to eSewa / Khalti now.

Change Payment
{% endif %}

Tracking Timeline

{% for step in timeline %}
{{ step.label }}
{% endfor %}

Order Summary

Payment method {{ order.payment_method }}
Payment provider {{ order.payment_provider_label }}
Payment status {{ order.payment_status }}
Total amount Rs. {{ order.total_price|floatformat:2 }}
Currency {{ order.payment_currency|default:'NPR' }}
Payment reference {{ order.payment_reference|default:'-' }}
Paid at {% if order.paid_at %}{{ order.paid_at|date:'M d, Y H:i' }}{% else %}-{% endif %}
Customer {{ order.full_name|default:order.user.username }}
Phone {{ order.phone|default:'-' }}
Address {{ order.address|default:'-' }}
Location label {{ order.location_label|default:'-' }}
Delivery notes {{ order.delivery_notes|default:'-' }}
GPS {% if order.has_precise_location %}{{ order.latitude }}, {{ order.longitude }}{% else %}-{% endif %}

Items

{% for item in order.items.all %}
{% if item.product.image %} {{ item.product.name }} {% else %} {{ item.product.name|slice:":1"|upper }} {% endif %}

{{ item.product.name }}

Quantity: {{ item.quantity }}

Rs. {{ item.price|floatformat:2 }}
{% endfor %}
{% endblock %}