{% load i18n %}

{% trans "Order ID:" %} {{ order.id }}

{% trans "Order Status" %}: {{ order.get_status_display }}

{% trans "Shipping Address" %}
{% if order.shipping_name %}{{ order.shipping_name }}
{% endif %} {% if order.shipping_address %}{{ order.shipping_address }}
{% endif %} {% if order.shipping_address2 %}{{ order.shipping_address2 }}
{% endif %} {% if order.shipping_zip_code %}{{ order.shipping_zip_code }}
{% endif %} {% if order.shipping_state %}{{ order.shipping_state }}
{% endif %} {% if order.shipping_country %}{{ order.shipping_country }}
{% endif %}
{% trans "Billing Address" %}
{% if order.billing_name %}{{ order.billing_name }}
{% endif %} {% if order.billing_address %}{{ order.billing_address }}
{% endif %} {% if order.billing_address2 %}{{ order.billing_address2 }}
{% endif %} {% if order.billing_zip_code %}{{ order.billing_zip_code }}
{% endif %} {% if order.billing_state %}{{ order.billing_state }}
{% endif %} {% if order.billing_country %}{{ order.billing_country }}
{% endif %}
{% for item in order.items.all %} {% for item_extra in item.extraorderitempricefield_set.all %} {% endfor %} {% endfor %} {% for extra_price_field in order.extraorderpricefield_set.all %} {% endfor %}
{% trans "Product name" %} {% trans "Unit price" %} {% trans "Quantity" %}  
{{item.product_name}} {{ item.unit_price }} {{item.quantity}} {{item.line_subtotal }}
  {{ item_extra.label }} {{ item_extra.value }}
 {% trans "Line Total" %}:{{item.line_total }}
 {% trans "Order Subtotal" %}{{order.order_subtotal }}
  {{ extra_price_field.label }} {{ extra_price_field.value }}
 {% trans "Order Total" %}{{order.order_total}}
{% for extra_info in order.extra_info.all %}

{{ extra_info.text }}

{% endfor %}