vendor/shopware/storefront/Resources/views/storefront/page/product-detail/cross-selling/tabs.html.twig line 1

Open in your IDE?
  1. {% block page_product_detail_cross_selling_tabs_inner %}
  2.     <div class="card card-tabs" data-cross-selling="true">
  3.         {% block page_product_detail_cross_selling_tabs_navigation %}
  4.             <div class="card-header product-detail-tab-navigation product-cross-selling-tab-navigation">
  5.                 {% block page_product_detail_cross_selling_tabs_navigation_container %}
  6.                     <ul class="nav nav-tabs product-detail-tab-navigation-list"
  7.                         id="product-detail-cross-selling-tabs"
  8.                         role="tablist">
  9.                         {% for item in crossSellings %}
  10.                             {% set id = item.crossSelling.id %}
  11.                             {% if item.crossSelling.active and item.getProducts().elements %}
  12.                                 <li class="nav-item">
  13.                                     <a class="nav-link product-detail-tab-navigation-link{% if loop.first %} active{% endif %}"
  14.                                        id="cs-{{ id }}-tab"
  15.                                        data-toggle="tab"
  16.                                        href="#cs-{{ id }}-tab-pane"
  17.                                        role="tab"
  18.                                        aria-controls="cs-{{ id }}-tab-pane"
  19.                                        aria-selected="true">
  20.                                         {{ item.crossSelling.translated.name }}
  21.                                         <span class="product-detail-tab-navigation-icon">
  22.                                             {% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
  23.                                         </span>
  24.                                     </a>
  25.                                 </li>
  26.                             {% endif %}
  27.                         {% endfor %}
  28.                     </ul>
  29.                 {% endblock %}
  30.             </div>
  31.         {% endblock %}
  32.         {% block page_product_detail_cross_selling_tabs_content %}
  33.             <div class="product-detail-tabs-content card-body">
  34.                 {% block page_product_detail_cross_selling_tabs_content_container %}
  35.                     <div class="tab-content">
  36.                         {% for item in crossSellings %}
  37.                             {% set id = item.crossSelling.id %}
  38.                             {% if item.crossSelling.active and item.getProducts().elements %}
  39.                                 <div class="tab-pane fade show{% if loop.first %} active{% endif %}"
  40.                                      id="cs-{{ id }}-tab-pane"
  41.                                      role="tabpanel"
  42.                                      aria-labelledby="cs-{{ id }}-tab">
  43.                                         {% set config = {
  44.                                             'title': {
  45.                                                 'value': item.crossSelling.name
  46.                                             },
  47.                                             'border': {
  48.                                                 'value': false
  49.                                             },
  50.                                             'rotate': {
  51.                                                 'value': false
  52.                                             },
  53.                                             'products': {
  54.                                                 'value': item.getProducts()
  55.                                             },
  56.                                             'boxLayout': {
  57.                                                 'value': 'standard'
  58.                                             },
  59.                                             'elMinWidth': {
  60.                                                 'value': '300px'
  61.                                             },
  62.                                             'navigation': {
  63.                                                 'value': true
  64.                                             },
  65.                                             'displayMode': {
  66.                                                 'value': 'minimal'
  67.                                             },
  68.                                             'verticalAlign': {
  69.                                                 'value': 'top'
  70.                                             },
  71.                                         } %}
  72.                                         {% sw_include "@Storefront/storefront/element/cms-element-product-slider.html.twig" with {
  73.                                             sliderConfig: config,
  74.                                             element: {
  75.                                                 'data': {
  76.                                                     'products': {
  77.                                                         elements: item.getProducts()
  78.                                                     }
  79.                                                 },
  80.                                                 type: 'product-slider'
  81.                                             }
  82.                                         } only %}
  83.                                 </div>
  84.                             {% endif %}
  85.                         {% endfor %}
  86.                     </div>
  87.                 {% endblock %}
  88.             </div>
  89.         {% endblock %}
  90.     </div>
  91. {% endblock %}