custom/static-plugins/LdsWintercornTheme/src/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_content_container %}
  3.     <div class="tab-content">
  4.         {% for item in crossSellings|filter(item => item.total > 0 and item.crossSelling.active == true) %}
  5.             {% set id = item.crossSelling.id %}
  6.             <div class="tab-pane fade show{% if loop.first %} active{% endif %}" id="cs-{{ id }}-tab-pane" role="tabpanel" aria-labelledby="cs-{{ id }}-tab">
  7.                 {% set config = {
  8.                         'title': {
  9.                             'value': item.crossSelling.name ?: item.crossSelling.translated.name
  10.                         },
  11.                         'border': {
  12.                             'value': false
  13.                         },
  14.                         'rotate': {
  15.                             'value': false
  16.                         },
  17.                         'products': {
  18.                             'value': item.getProducts()
  19.                         },
  20.                         'boxLayout': {
  21.                             'value': 'standard'
  22.                         },
  23.                         'elMinWidth': {
  24.                             'value': '200px'
  25.                         },
  26.                         'navigation': {
  27.                             'value': true
  28.                         },
  29.                         'displayMode': {
  30.                             'value': 'minimal'
  31.                         },
  32.                         'verticalAlign': {
  33.                             'value': 'top'
  34.                         },
  35.                     } %}
  36.                 {% sw_include "@Storefront/storefront/element/cms-element-product-slider.html.twig" with {
  37.                         sliderConfig: config,
  38.                         element: {
  39.                             'data': {
  40.                                 'products': {
  41.                                     elements: item.getProducts()
  42.                                 }
  43.                             },
  44.                             type: 'product-slider'
  45.                         }
  46.                     } %}
  47.             </div>
  48.         {% endfor %}
  49.     </div>
  50. {% endblock %}