commerce-order.html.twig in Commerce Core 8.2
Default order template.
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:
{{ order|without('order_number') }}
- order_entity: The order entity.
File
modules/order/templates/commerce-order.html.twigView source
- {#
- /**
- * @file
- * Default order template.
- *
- * 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 }}>
- {{ order }}
- </div>