You are here

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.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default order template.
  5. *
  6. * Available variables:
  7. * - attributes: HTML attributes for the wrapper.
  8. * - order: The rendered order fields.
  9. * Use 'order' to print them all, or print a subset such as
  10. * 'order.order_number'. Use the following code to exclude the
  11. * printing of a given field:
  12. * @code
  13. * {{ order|without('order_number') }}
  14. * @endcode
  15. * - order_entity: The order entity.
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. <div{{ attributes }}>
  21. {{ order }}
  22. </div>