orange_ecom_starter-2.0.x-dev/templates/commerce/commerce-order--user.html.twig
templates/commerce/commerce-order--user.html.twig
{#
/**
* @file
* Template for orders in the 'user' view mode.
*
* Available variables:
* - attributes: HTML attributes for the wrapper.
* - order: The rendered order fields.
* Use 'order' to print them all, or print a subset such as
* 'order.order_number'. Use the following code to exclude the
* printing of a given field:
* @code
* {{ order|without('order_number') }}
* @endcode
* - order_entity: The order entity.
*
* @ingroup themeable
*/
#}
<div{{ attributes }}>
<div class="customer-information">
{{ order.mail }}
{% if order.shipping_information %}
<div class="customer-information__shipping">
<div class="field__label">{{ 'Shipping Information'|t }}</div>
{{ order.shipping_information }}
</div>
{% endif %}
{% if order.billing_information %}
<div class="customer-information__billing">
<div class="field__label">{{ 'Billing Information'|t }}</div>
{{ order.billing_information }}
</div>
{% endif %}
</div>
<div class="order-information">
<div class="order-information__header">
<div class="field field--name-order-id">
<div class="field__label">{{ 'Order #'|t }}</div>
<div class="field__item">{{ order_entity.id }}</div>
</div>
<div class="field field--name-order-placed">
<div class="field__label">{{ 'Order Placed'|t }}</div>
<div class="field__item">{{ order.placed.0['#markup'] }}</div>
</div>
<div class="field field--name-order-total">
<div class="field__label">{{ 'Order Total'|t }}</div>
<div class="field__item">{{ order_entity.getTotalPrice|commerce_price_format }}</div>
</div>
{{ order.state }}
</div>
{{ drupal_view('order_item_table_orange', 'default', order_entity.id) }}
<div class="order-information__footer">
{{ order.total_price }}
</div>
</div>
</div>
