custom/plugins/TcinnThemeWareClean/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: prüfen... #}
  3. {# ThemeWare: Cross-selling tab on classic product page #}
  4. {# INFO: Please note this is also available as "element/cms-element-cross-selling.html.twig" since SW6.4 #}
  5. {# TODO: HC-Architecture... #}
  6. {# ThemeWare: Adjustments on cross-selling tab #}
  7. {# TODO:
  8.     This adjustment is only required because unnecessary containers are handed over by Shopware when cross-selling element is empty.
  9.     If Shopware has fixed the problem, this adjustment can be removed.
  10. #}
  11. {% block page_product_detail_cross_selling_tabs_inner %}
  12.     {# ThemeWare: Check for crossselling content #}
  13.     {% set counterCrossSellings = 0 %}
  14.     {% for i in crossSellings.elements %}
  15.         {% set counterCrossSellings = ( counterCrossSellings | default(0) ) + 1 %}
  16.     {% endfor %}
  17.     {# ThemeWare: Add crossselling content #}
  18.     {% if counterCrossSellings >= 1 %}
  19.         {# Default block #}
  20.         {{ parent() }}
  21.     {% endif %}
  22. {% endblock %}