{% extends 'base.html.twig' %} {% set titleName = "Order Details " %} {% block title %} POWER DATA | Order : {{ order["increment_id"] }} {% endblock %} {% block page %} {{ order["increment_id"] }} {% endblock %} {% block breadcrumb %} {% if titleName != "Home" %} {{ titleName }} / {{ order["increment_id"] }} {% endif %} {% endblock %} {% block css %} {% endblock %} {% block content %}
{% for message in app.flashes('success') %} {% endfor %} {% for message in app.flashes('error') %} {% endfor %}

{{ order["increment_id"] }} {{ order["created_at"]|date }}

Client
{{ order["customer_firstname"] ~" "~ order["customer_lastname"] }}
Phone
{{ order["extension_attributes"]["shipping_assignments"][0]["shipping"]["address"]["telephone"] }}
Region
{{ order["extension_attributes"]["shipping_assignments"][0]["shipping"]["address"]["region"] }}
Address
{{ order["extension_attributes"]["shipping_assignments"][0]["shipping"]["address"]["city"] ~", "~ order["extension_attributes"]["shipping_assignments"][0]["shipping"]["address"]["street"]|join(', ') }}
Status
{{ order["status"] }}
Coupon
{% if order["coupon_code"] is defined %} {{ order["coupon_code"] }}
[ {{ order["discount_description"] }} ] {% endif %}
{% if order.status in ["pending","validee" ,"client_ne_repond_pas"] %}
{% endif %}
{% set subtotal = 0 %} {% for product in order.items %} {% endfor %}
Sku Product P.U Qty Discount Subtotal
{{ product.sku is defined ? product.sku : '' }} {{ product.name is defined ? product.name : '' }} {{ product.price_incl_tax is defined ? product.price_incl_tax : '' }} {{ product.qty_ordered is defined ? product.qty_ordered : ''}} {{ product.base_discount_amount is defined ? '-'~product.base_discount_amount : ''}} {{ product.row_total_incl_tax is defined ? product.row_total_incl_tax : ''}}

Details

Subtotal: {{ order["base_subtotal_incl_tax"] }}
Discount: {{ order["base_discount_amount"] }}
Shipping: {{ order["base_shipping_incl_tax"] }}
Total: {{ order["grand_total"] }}
{% endblock %} {% block script %} {% endblock %}