Files
slump-x-land-studio/templates/shop/order.html
T

23 lines
1.2 KiB
HTML

{% extends 'base.html' %}
{% block title %}Order {{ order.order_id|slice:":8" }} · SLUMP X LAND{% endblock %}
{% block content %}
<main class="page-shell">
<h1>Order #{{ order.order_id|slice:":8" }}</h1>
<p>Status: <strong>{{ order.get_status_display }}</strong> · Total: <strong>${{ order.total_usd }}</strong></p>
{% if order.tracking_number %}<p>Tracking: <strong>{{ order.tracking_number }}</strong></p>{% endif %}
<ul>
{% for item in order.items.all %}
<li>
{{ item.quantity }} &times; {{ item.title_snapshot }} (${{ item.line_total }})
{% if item.chapter %} — <a href="{% url 'chapter' item.chapter.number %}">Open chapter reader</a>{% elif item.product.digital_file and order.status in 'paid,shipped,delivered' %}
— <a href="{% url 'shop-download' order.order_id item.pk %}"><strong>Download File</strong></a>
{% endif %}
</li>
{% endfor %}
</ul>
{% if user.is_authenticated and order.user_id == user.pk %}<p><a href="{% url 'collector-preferences' %}">Choose how you appear on the collector thank-you list →</a></p>{% endif %}
<p><a href="{% url 'shop-index' %}">&larr; Return to Shop</a></p>
</main>
{% endblock %}