{# /** * @file * * Default product template. * * Available variables: * - attributes: HTML attributes for the wrapper. * - product: The rendered product fields. * Use 'product' to print them all, or print a subset such as * 'product.title'. Use the following code to exclude the * printing of a given field: * @code * {{ product|without('title') }} * @endcode * - product_entity: The product entity. * - product_url: The product URL. * * @ingroup themeable */ ******** product.title product.variation_title product.variation_sku product.variation_price product.variations product_url #} {% set extra_classes = '' %} {% if product_entity.field_promoted.value and product_entity.field_promoted.value == '1' %} {% set extra_classes = 'promoted' %} {% endif %} {% set classes = [ 'product-teaser', extra_classes|clean_class ] %} {{ product.field_product_image.0 }} {{ title_prefix }} {{ product.title }} {{ title_suffix }} {{ product.variation_price }}
{{ product.variation_list_price }}
{{ link('', product_url, { 'class':['clickable-teaser']} ) }}