bootstrap_barrio-5.1.3/templates/commerce/products/_commerce-product.html.twig
templates/commerce/products/_commerce-product.html.twig
{#
/**
* @file
*
* Product template example.
* Change layout moving singular field
*
* 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
*/
#}
<article{{ attributes }}>
<div class="row">
<div class="col-sm-6">{{- product|without('variation_attributes', 'field_imagen') -}}</div>
<div class="photo col-sm-6">{{ product.field_imagen }}</div>
</div>
</article>
