{# This template is best included using the 'order' templatetag from `shopit_tags`. #} {% load i18n shopit_tags %} {% if order %}

{% trans "Order" %} #{{ order }}

{% for item in order_items %} {% for key, extra in item.extra.rows %} {% if forloop.last %}{% endif %} {% endfor %} {% endfor %} {% for key, extra in order.extra.rows %} {% endfor %}
{% trans "Order date" %} {{ order.created_at|date }}
{% trans "Status" %} {{ order.status_name }}
{% trans "Shipping address" %}{% trans "Billing address" %}
{{ order.shipping_address_text|linebreaksbr }}{{ order.billing_address_text|linebreaksbr }}
{% trans "Product" %} {% trans "Price" %} {% trans "Quantity" %} {% trans "Total" %}
{{ item.product_name }} {{ item.unit_price }} {{ item.quantity }} {% widthratio item.unit_price 1 item.quantity as line_subtotal %}{{ line_subtotal|moneyformat }}
{{ extra.label }}{% if extra.code %} ({{ extra.code }}){% endif %}{{ extra.amount }}
{{ item.line_total }}
{% trans "Subtotal" %}{{ order.subtotal }}
{{ extra.label }}{% if extra.code %} ({{ extra.code }}){% endif %}{{ extra.amount }}
{% trans "Total" %}{{ order.total }}
{% trans "Amount paid" %}{{ order.amount_paid }}
{% trans "Outstanding amount" %}{{ order.outstanding_amount }}
{% else %}

{% trans "No order." %}

{% endif %}