custom/plugins/zenitPlatformHorizon/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. {# TODO: @zenit check on sw update #}
  3. {% block page_product_detail_cross_selling_tabs_content %}
  4.     <div class="product-detail-tabs-content card-body">
  5.         {% block page_product_detail_cross_selling_tabs_content_container %}
  6.             <div class="tab-content">
  7.                 {% for item in crossSellings|filter(item => item.total > 0 and item.crossSelling.active == true) %}
  8.                     {% set id = item.crossSelling.id %}
  9.                     {# ... changes displayMode from minimal to standard #}
  10.                     {# ... changes boxLayout from standard to minimal #}
  11.                     <div class="tab-pane fade show{% if loop.first %} active{% endif %}"
  12.                          id="cs-{{ id }}-tab-pane"
  13.                          role="tabpanel"
  14.                          aria-labelledby="cs-{{ id }}-tab">
  15.                         {% set config = {
  16.                             'title': {
  17.                                 'value': item.crossSelling.name ?: item.crossSelling.translated.name
  18.                             },
  19.                             'border': {
  20.                                 'value': false
  21.                             },
  22.                             'rotate': {
  23.                                 'value': false
  24.                             },
  25.                             'products': {
  26.                                 'value': item.getProducts()
  27.                             },
  28.                             'boxLayout': {
  29.                                 'value': 'minimal'
  30.                             },
  31.                             'elMinWidth': {
  32.                                 'value': '300px'
  33.                             },
  34.                             'navigation': {
  35.                                 'value': true
  36.                             },
  37.                             'displayMode': {
  38.                                 'value': 'standard'
  39.                             },
  40.                             'verticalAlign': {
  41.                                 'value': 'top'
  42.                             },
  43.                         } %}
  44.                         {% sw_include "@Storefront/storefront/element/cms-element-product-slider.html.twig" with {
  45.                             sliderConfig: config,
  46.                             element: {
  47.                                 'data': {
  48.                                     'products': {
  49.                                         elements: item.getProducts()
  50.                                     }
  51.                                 },
  52.                                 type: 'product-slider'
  53.                             }
  54.                         } %}
  55.                     </div>
  56.                 {% endfor %}
  57.             </div>
  58.         {% endblock %}
  59.     </div>
  60. {% endblock %}