Configure shop app, admin sidebar, media routing, and Stripe dependencies
This commit is contained in:
commit
93d83a0d63
188 files changed
+9220
No files matched your search
@@ -0,0 +1,21 @@
|
||||
{% 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 }} × {{ item.title_snapshot }} (${{ item.line_total }})
|
||||
{% if item.product.kind == 'digital' 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>
|
||||
<p><a href="{% url 'shop-index' %}">← Return to Shop</a></p>
|
||||
</main>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user