custom/plugins/TcinnThemeWareClean/src/Resources/views/storefront/component/product/card/box.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/box.html.twig' %}
  2. {# ThemeWare® HC-Architecture® ready #}
  3. {# ThemeWare: Adjustments on the product box #}
  4. {% block component_product_box_include %}
  5.     {# ThemeWare: Klasse 'twt-is-sold' hinzufügen falls "Produkte nach Abverkaufende abschwächen" aktiviert wurde. #}
  6.     {# TODO: Check if adding as class to product boxes will be made possible in further Shopware updates #}
  7.     {% if product.isCloseout and product.availableStock < product.minPurchase and not product.isGrouped %}
  8.         {% set twtBlockClasses = ['twt-is-sold'] %}
  9.     {% endif %}
  10.     {# ThemeWare: Klasse 'twt-is-topseller' hinzufügen falls das Produkt ein "Topseller" ist. #}
  11.     {# TODO: Check if adding as class to product boxes will be made possible in further Shopware updates #}
  12.     {% if product.markAsTopseller and twtBlockClasses is not empty %}
  13.         {% set twtBlockClasses = ['twt-is-topseller']|merge(twtBlockClasses) %}
  14.     {% elseif product.markAsTopseller and twtBlockClasses is empty %}
  15.         {% set twtBlockClasses = ['twt-is-topseller'] %}
  16.     {% endif %}
  17.     {% if twtBlockClasses is not empty %}
  18.         <div class="{{ twtBlockClasses|join(' ') }}"></div>
  19.     {% endif %}
  20.     {# Default block #}
  21.     {{ parent() }}
  22. {% endblock %}