You are here

commerce-pricelist.html.twig in Commerce Pricelist 8.2

Default template for price lists.

Available variables:

  • attributes: HTML attributes for the wrapper.
  • price_list: The rendered price list fields. Use 'price_list' to print them all, or print a subset such as 'price_list.name'. Use the following code to exclude the printing of a given field:

  {{ price_list|without('name') }}
  
  • price_list_entity: The price list entity.

File

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