{% if input('thanks') or thanks %}
{% if validationFailed %}

{{ 'pixel.shop::component.order.not_confirmed'|trans }}

{{ 'pixel.shop::component.order.not_confirmed_comment'|trans }}

{% else %}

{{ 'pixel.shop::component.order.confirmed'|trans }}

{{ 'pixel.shop::component.order.confirmed_comment'|trans({email: order.customer_email}) }}

{% endif %}

{% endif %}

{{ 'pixel.shop::component.cart.order_summary'|trans }}

{{ ('pixel.shop::lang.status.' ~ order.status)|trans }}

{{ order.getShopName() }}
{{ order.getShopEmail() }}
{{ order.getShopAddress()|nl2br }}

{{ order.customer_fullname }}
{{ order.customer_email }}
{{ order.billing_address.first_line }}
{% if order.billing_address.city %} {{ order.billing_address.city }}, {% endif %} {% if order.billing_address.state %} {{ order.billing_address.state }}, {% endif %} {% if order.billing_address.country %} {{ order.billing_address.country }} {% endif %}
{% if order.billing_address.zip %} {{ 'pixel.shop::lang.fields.postal_code'|trans }}: {{ order.billing_address.zip }} {% endif %}

#{{ order.getOrderID() }}

{{ ('pixel.shop::lang.fields.' ~ order.gateway)|trans }}

{% if order.custom_fields.customer %}
{% for field in order.custom_fields.customer if field.value %}

{{ field.value }}

{% endfor %}
{% endif %}
{% for item in order.items %} {% endfor %} {% if order.coupon %} {% endif %}
{{ 'pixel.shop::lang.fields.description'|trans }} {{ 'pixel.shop::lang.fields.price'|trans }} {{ 'pixel.shop::lang.fields.qty'|trans }} {{ 'pixel.shop::lang.fields.total'|trans }}
{% if item.thumb %} {% endif %} {{ item.title }} {% if item.description %}
{{ item.description }} {% endif %}
{{ item.price|currency }} x{{ item.quantity }} {{ item.total|currency }}
{{ 'pixel.shop::lang.fields.coupon'|trans }}
{{ order.coupon.code }}
- - - - -{{ order.coupon.getValueLabel() }}
{{ 'pixel.shop::lang.fields.shipping'|trans }} {{ order.shipping_total|currency }}
{{ 'pixel.shop::lang.fields.tax'|trans }} {{ order.tax_total|currency }}
{{ 'pixel.shop::lang.fields.grand_total'|trans }} {{ order.total|currency }}
{% if order.custom_fields.shipping %}
{% for field in order.custom_fields.shipping if field.value %}

{{ field.value }}

{% endfor %}
{% endif %} {% if order.custom_fields.billing %}
{% for field in order.custom_fields.billing if field.value %}

{{ field.value }}

{% endfor %}
{% endif %} {% if order.note %}

{{ order.note }}

{% endif %} {% if order.gateway == 'bank_transfer' %} {% partial '@method_bank_transfer' cart=order %} {% endif %} {% if order.gateway == 'cash_on_delivery' %} {% partial '@method_cash_on_delivery' %} {% endif %}