{% extends 'shop/_layouts/main' %} {% set number = craft.app.request.param('number') %} {% set order = craft.orders.number(number).one() %} {% if not order or order.isCompleted == false %} {% redirect 'shop/customer' %} {% endif %} {% block main %}
{% if currentUser %}

My Orders

{% endif %}

Order #{{ order.id }}

Details

{{ "Customer"|t }}: {{ order.customer.email }}
{{ "Total"|t }}: {{ order.totalPrice|commerceCurrency(cart.currency) }}
{{ "Amount Paid"|t }}: {{ order.totalPaid|commerceCurrency(cart.currency) }}
{{ "Date"|t }}: {{ order.dateOrdered|date('D jS M Y') }}
{% if order.pdfUrl %} Receipt: Download {% endif %}

Shipping Address

{% if order.shippingAddress %} {% include 'shop/_includes/addresses/address' with { address: order.shippingAddress } %} {% endif %}

Billing Address

{% if order.billingAddress %} {% include 'shop/_includes/addresses/address' with { address: order.billingAddress } %} {% endif %}
{% for item in order.lineItems %} {% endfor %} {% for adjustment in order.adjustments %} {% endfor %}
Item Unit Price Quantity Total
{{ item.description }}
SKU: {{ item.sku }}
{% if item.onSale %} {{ item.price|commerceCurrency(cart.currency) }} {{ item.salePrice|commerceCurrency(cart.currency) }} {% else %} {{ item.price|commerceCurrency(cart.currency) }} {% endif %} {{ item.qty }} {{ item.subtotal|commerceCurrency(cart.currency) }}
{{ adjustment.type }} {{ adjustment.name }}
({{ adjustment.description }})
{{ adjustment.amount|commerceCurrency(cart.currency) }}
Item Total: {{ order.itemTotal|commerceCurrency(cart.currency) }}

Total: {{ order.totalPrice|commerceCurrency(cart.currency) }}

{% endblock %}