commerce-product--home-summary.html.twig 775 B

1234567891011121314151617181920212223242526272829303132
  1. {#
  2. /**
  3. * @file
  4. *
  5. * Default product template.
  6. *
  7. * Available variables:
  8. * - attributes: HTML attributes for the wrapper.
  9. * - product: The rendered product fields.
  10. * Use 'product' to print them all, or print a subset such as
  11. * 'product.title'. Use the following code to exclude the
  12. * printing of a given field:
  13. * @code
  14. * {{ product|without('title') }}
  15. * @endcode
  16. * - product_entity: The product entity.
  17. * - product_url: The product URL.
  18. *
  19. * @ingroup themeable
  20. */
  21. #}
  22. {#
  23. <article{{ attributes }}>
  24. {{- product|without('variation_attributes') -}}
  25. <a href="/{{ language }}/pricing" @click.prevent="onClickLink" class="btn">
  26. {% trans %}View Option Details{% endtrans %}
  27. </a>
  28. </article>
  29. #}
  30. <article{{ attributes }}>
  31. {{- product -}}
  32. </article>