custom/static-plugins/EfbStorefront/Resources/views/storefront/page/product-detail/cross-selling/tabs.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' %}
  2. {% block page_product_detail_cross_selling_tabs_inner %}
  3.     {% for item in crossSellings|filter(item => item.crossSelling.active and item.getProducts().elements) %}
  4.         <div class="cross-selling">
  5.             {% set config = {
  6.                 'title': {
  7.                     'value': item.crossSelling.name
  8.                 },
  9.                 'border': {
  10.                     'value': false
  11.                 },
  12.                 'rotate': {
  13.                     'value': false
  14.                 },
  15.                 'products': {
  16.                     'value': item.getProducts()
  17.                 },
  18.                 'boxLayout': {
  19.                     'value': 'minimal'
  20.                 },
  21.                 'elMinWidth': {
  22.                     'value': '300px'
  23.                 },
  24.                 'navigation': {
  25.                     'value': true
  26.                 },
  27.                 'displayMode': {
  28.                     'value': 'minimal'
  29.                 },
  30.                 'verticalAlign': {
  31.                     'value': 'top'
  32.                 },
  33.             } %}
  34.             {% sw_include "@Storefront/storefront/element/cms-element-product-slider.html.twig" with {
  35.                 sliderConfig: config,
  36.                 element: {
  37.                     'data': {
  38.                         'products': {
  39.                             elements: item.getProducts()
  40.                         }
  41.                     },
  42.                     type: 'product-slider'
  43.                 }
  44.             } %}
  45.         </div>
  46.     {% endfor %}
  47. {% endblock %}