vendor/shopware/storefront/Resources/views/storefront/element/cms-element-product-box.html.twig line 1

Open in your IDE?
  1. {% block element_product_box %}
  2.     {% set config = element.fieldConfig.elements %}
  3.     <div class="cms-element-{{ element.type }}{% if config.verticalAlign.value %} has-vertical-alignment{% endif %}">
  4.         {% block element_product_slider_alignment %}
  5.             {% if config.verticalAlign.value %}
  6.                 <div class="cms-element-alignment{% if config.verticalAlign.value == "center" %} align-self-center{% elseif config.verticalAlign.value == "flex-end" %} align-self-end{% else %} align-self-start{% endif %}">
  7.             {% endif %}
  8.                 {% block element_product_box_inner %}
  9.                     {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  10.                         'product': element.data.product,
  11.                         'layout': element.translated.config.boxLayout.value,
  12.                         'displayMode': element.translated.config.displayMode.value
  13.                     } %}
  14.                 {% endblock %}
  15.             {% if config.verticalAlign.value %}
  16.                 </div>
  17.             {% endif %}
  18.         {% endblock %}
  19.     </div>
  20. {% endblock %}