You are here

commerce-product-bundle.html.twig in Commerce Product Bundle 8

Default product bundle template.

Available variables:

  • attributes: HTML attributes for the wrapper.
  • product_bundle: The rendered product bundle fields. Use 'product_bundle' to print them all, or print a subset such as 'product_bundle.title'. Use the following code to exclude the printing of a given field:

  {{ product_bundle|without('title') }}
  
  • product_bundle_entity: The product bundle entity.
  • product_bundle_url: The product bundle URL.

File

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