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

Open in your IDE?
  1. {% extends "@Storefront/storefront/component/product/card/box-standard.html.twig" %}
  2. {% block component_product_box_description %}
  3. {% endblock %}
  4. {% block component_product_box_badges %}
  5.     {{ parent() }}
  6.     {% block component_product_box_price %} {% endblock %}
  7. {% endblock %}
  8. {% block component_product_box_name %}
  9.     {% block component_product_box_variant_icons %}
  10.         {% if product.customFields.custom_product_icons_icon|length > 0 %}
  11.             <div class="icons-container flex">
  12.                 {% for icon in product.customFields.custom_product_icons_icon %}
  13.                     {% if loop.index0 <= 9 %}
  14.                         {% if icon == 'icon_fire' %}
  15.                             <img class="icon" height="20px" width="auto"
  16.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_fire.svg'), 'asset') }}"
  17.                                  title="Brandklasse B1" alt="Icon Brandklasse B1">
  18.                         {% endif %}
  19.                         {% if icon == 'icon_paper' %}
  20.                             <img class="icon" height="20px" width="auto"
  21.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_paper.svg'), 'asset') }}"
  22.                                  title="Papiereinleger zur Selbstbeschriftung"
  23.                                  alt="Icon Papiereinleger zur Selbtsbeschriftung">
  24.                         {% endif %}
  25.                         {% if icon == 'icon_plates' %}
  26.                             <img class="icon" height="20px" width="auto"
  27.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_plates.svg'), 'asset') }}"
  28.                                  title="Beschriftungsplatten wechselbar"
  29.                                  alt="Icon Beschriftungsplatten wechselbar">
  30.                         {% endif %}
  31.                         {% if icon == 'icon_glue_and_screw' %}
  32.                             <img class="icon" height="20px" width="auto"
  33.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_glue_and_screw.svg'), 'asset') }}"
  34.                                  title="Klebe- und Schraubmontage"
  35.                                  alt="Icon Klebe- und Schraubmontage">
  36.                         {% endif %}
  37.                         {% if icon == 'icon_screw_countersunk' %}
  38.                             <img class="icon" height="20px" width="auto"
  39.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_screw_countersunk.svg'), 'asset') }}"
  40.                                  title="Schraubmontage mit Senkkopfschrauben"
  41.                                  alt="Icon Schraubmontage mit Senkkopfschrauben">
  42.                         {% endif %}
  43.                         {% if icon == 'icon_screw_flathead' %}
  44.                             <img class="icon" height="20px" width="auto"
  45.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_screw_flathead.svg'), 'asset') }}"
  46.                                  title="Schraubmontage mit Flachkopfschrauben"
  47.                                  alt="Icon Schraubmontage mit Flachkopfschrauben">
  48.                         {% endif %}
  49.                         {% if icon == 'icon_glue' %}
  50.                             <img class="icon" height="20px" width="auto"
  51.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_glue.svg'), 'asset') }}"
  52.                                  title="Klebemontage" alt="Klebemontage">
  53.                         {% endif %}
  54.                         {% if icon == 'icon_feeder_changer' %}
  55.                             <img class="icon" height="20px" width="auto"
  56.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_feeder_changer.svg'), 'asset') }}"
  57.                                  title="Einlegerwechsel mittels Haftsauger"
  58.                                  alt="Icon Einlegerwechsel mittels Haftsauger">
  59.                         {% endif %}
  60.                         {% if icon == 'icon_paper_secured' %}
  61.                             <img class="icon" height="20px" width="auto"
  62.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_paper_secured.svg'), 'asset') }}"
  63.                                  title="Papiereinleger gesichert"
  64.                                  alt="Icon Papiereinleger gesichert">
  65.                         {% endif %}
  66.                         {% if icon == 'icon_direct_printing' %}
  67.                             <img class="icon" height="20px" width="auto"
  68.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_direct_printing.svg'), 'asset') }}"
  69.                                  title="Direktdruck" alt="Icon Direktdruck">
  70.                         {% endif %}
  71.                         {% if icon == 'icon_tactile_labeling' %}
  72.                             <img class="icon" height="20px" width="auto"
  73.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_tactile_labeling.svg'), 'asset') }}"
  74.                                  title="Taktile Beschriftung möglich"
  75.                                  alt="Icon Taktile Beschriftung möglich">
  76.                         {% endif %}
  77.                         {% if icon == 'icon_stock' %}
  78.                             <img class="icon" height="20px" width="auto"
  79.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_stock.svg'), 'asset') }}"
  80.                                  title="Lagerartikel, rascher Versand"
  81.                                  alt="Lagerartikel, rascher Versand">
  82.                         {% endif %}
  83.                         {% if icon == 'icon_feeder_changer_tools' %}
  84.                             <img class="icon" height="20px" width="auto"
  85.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_feeder_changer_tools.svg'), 'asset') }}"
  86.                                  title="Einlegerwechsel mittels Werkzeug"
  87.                                  alt="Icon Einlegerwechsel mittels Werkzeug">
  88.                         {% endif %}
  89.                         {% if icon == 'icon_escape_sign' %}
  90.                             <img class="icon" height="20px" width="auto"
  91.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_escape_sign.svg'), 'asset') }}"
  92.                                  title="Normgröße Fluchtwegschilder"
  93.                                  alt="Icon Noirmgröße Fluchtwegschilder">
  94.                         {% endif %}
  95.                         {% if icon == 'icon_sustainable' %}
  96.                             <img class="icon" height="20px" width="auto"
  97.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_sustainable.svg'), 'asset') }}"
  98.                                  title="Umweltfreundliches Produkt"
  99.                                  alt="Icon Umweltfreundliches Produkt">
  100.                         {% endif %}
  101.                         {% if icon == 'icon_outdoor' %}
  102.                             <img class="icon" height="20px" width="auto"
  103.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_outdoor.svg'), 'asset') }}"
  104.                                  title="Außenanwendung" alt="Icon Außenanwendung">
  105.                         {% endif %}
  106.                         {% if icon == 'icon_feeder_changer_without_tools' %}
  107.                             <img class="icon" height="20px" width="auto"
  108.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_feeder_changer_without_tools.svg'), 'asset') }}"
  109.                                  title="Einlegerwechsel ohne Werkzeug"
  110.                                  alt="Icon Einlegerwechsel ohne Werkzeug">
  111.                         {% endif %}
  112.                         {% if icon == 'icon_opening_right' %}
  113.                             <img class="icon" height="20px" width="auto"
  114.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_opening_right.svg'), 'asset') }}"
  115.                                  title="Öffnungsseite" alt="Icon Öffnungsseite">
  116.                         {% endif %}
  117.                         {% if icon == 'icon_led' %}
  118.                             <img class="icon" height="20px" width="auto"
  119.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_led.svg'), 'asset') }}"
  120.                                  title="LED Beleuchtung" alt="Icon LED Beleuchtung">
  121.                         {% endif %}
  122.                         {% if icon == 'icon_flange' %}
  123.                             <img class="icon" height="20px" width="auto"
  124.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_flange.svg'), 'asset') }}"
  125.                                  title="Flanschmontage" alt="Icon Flanschmontage">
  126.                         {% endif %}
  127.                         {% if icon == 'icon_quiver' %}
  128.                             <img class="icon" height="20px" width="auto"
  129.                                  src="{{ asset(('bundles/schildersysteme/icons/icon_quiver.svg'), 'asset') }}"
  130.                                  title="Köchermontage" alt="Icon Köchermontage">
  131.                         {% endif %}
  132.                     {% endif %}
  133.                 {% endfor %}
  134.             </div>
  135.             {{ dump(product) }}
  136.         {% endif %}
  137.     {% endblock %}
  138.     <a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
  139.        class="product-name"
  140.        title="{{ name }}">
  141.         {{ name }}
  142.     </a>
  143. {% endblock %}
  144. {% block component_product_box_variant_characteristics %}
  145.     <div class="product-characteristics">
  146.         {% if product.customFields.custom_product_bulettpoints_content %}
  147.             {{ product.customFields.custom_product_bulettpoints_content | raw }}
  148.         {% endif %}
  149.     </div>
  150. {% endblock %}
  151. {% block component_product_box_action %}
  152.     {% set isListPrice = product.calculatedPrice.listPrice.percentage > 0 %}
  153.     {% set listPrice = product.calculatedPrice.listPrice.price %}
  154.     <div class="flex-grow-1"></div>
  155.     {#    <span class="list-price-line-through"> #}
  156.     {#    {% if isListPrice %} #}
  157.     {#        {{ "listing.strikePriceText"|trans|sw_sanitize }}          {{ listPrice|currency }}{{ "general.star"|trans|sw_sanitize }}</span> #}
  158.     {#    {% endif %} #}
  159.     {#    </span> #}
  160.     <div class="product-action-wrapper  {% if isListPrice and not displayFrom %} with-list-price{% endif %}">
  161.         {% block component_product_box_price_custom %}
  162.             <div class="product-price-wrapper">
  163.                 <div class="product-variants">
  164.                     {% sw_include '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
  165.                     {% if product.customFields.sz_variants|length!=0 %}
  166.                         ({{ product.customFields.sz_variants|length }} {{ "listing.productVariants"|trans|sw_sanitize }})
  167.                     {% endif %}
  168.                 </div>
  169.             </div>
  170.         {% endblock %}
  171.         {% sw_include '@Storefront/storefront/component/product/card/action.html.twig' %}
  172.     </div>
  173. {% endblock %}
  174. {% block component_product_box_rating %}
  175. {% endblock %}
  176. {% block component_product_box_image %}
  177.     <div class="product-image-wrapper">
  178.         {% set variants = product.customFields.sz_variants %}
  179.         {# fallback if display mode is not set #}
  180.         {% set displayMode = displayMode ?: 'standard' %}
  181.         {# set display mode 'cover' for box-image with standard display mode #}
  182.         {% if layout == 'image' and displayMode == 'standard' %}
  183.             {% set displayMode = 'cover' %}
  184.         {% endif %}
  185.         <a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
  186.            title="{{ name }}"
  187.            class="position-relative product-image-link is-{{ displayMode }}">
  188.             {% if cover.url %}
  189.                 {% set attributes = {
  190.                     'alt': (cover.translated.alt ?: name),
  191.                     'title': (cover.translated.title ?: name)
  192.                 } %}
  193.                 {% sw_thumbnails 'product-image-thumbnails' with {
  194.                     media: cover,
  195.                     sizes: {
  196.                         'xs': '501px',
  197.                         'sm': '315px',
  198.                         'md': '427px',
  199.                         'lg': '333px',
  200.                         'xl': '284px'
  201.                     },
  202.                     attributes:{
  203.                         'class':'product-image is-standard'
  204.                     }
  205.                 } %}
  206.                 {% if displayMode == 'cover' or displayMode == 'contain' %}
  207.                     {% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
  208.                 {% endif %}
  209.                 {% set secondCoverId = product.customFields.custom_second_product_cover_image %}
  210.                 {% if secondCoverId %}
  211.                     {% set media = searchMedia([secondCoverId], context.context) %}
  212.                     {% set secondCover = media.get(product.customFields.custom_second_product_cover_image) %}
  213.                 {% endif %}
  214.                 {% if secondCover %}
  215.                     {% sw_thumbnails 'product-image-thumbnails' with {
  216.                         media: secondCover,
  217.                         sizes: {
  218.                             'xs': '501px',
  219.                             'sm': '315px',
  220.                             'md': '427px',
  221.                             'lg': '333px',
  222.                             'xl': '284px'
  223.                         },
  224.                         attributes:{
  225.                             'class':'product-image is-standard second-cover'
  226.                         }
  227.                     } %}
  228.                 {% endif %}
  229.             {% else %}
  230.                 <div class="product-image-placeholder">
  231.                     {% sw_icon 'placeholder' style {
  232.                         'size': 'fluid'
  233.                     } %}
  234.                 </div>
  235.             {% endif %}
  236.         </a>
  237.         {# endif #}
  238.         {% if config('core.cart.wishlistEnabled') %}
  239.             {% block component_product_box_wishlist_action %}
  240.             {% endblock %}
  241.         {% endif %}
  242.     </div>
  243.     <template class="dynamically-load-tns"></template>
  244. {% endblock %}