{% extends "@Storefront/storefront/component/product/card/box-standard.html.twig" %}
{% block component_product_box_description %}
{% endblock %}
{% block component_product_box_badges %}
{{ parent() }}
{% block component_product_box_price %} {% endblock %}
{% endblock %}
{% block component_product_box_name %}
{% block component_product_box_variant_icons %}
{% if product.customFields.custom_product_icons_icon|length > 0 %}
<div class="icons-container flex">
{% for icon in product.customFields.custom_product_icons_icon %}
{% if loop.index0 <= 9 %}
{% if icon == 'icon_fire' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_fire.svg'), 'asset') }}"
title="Brandklasse B1" alt="Icon Brandklasse B1">
{% endif %}
{% if icon == 'icon_paper' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_paper.svg'), 'asset') }}"
title="Papiereinleger zur Selbstbeschriftung"
alt="Icon Papiereinleger zur Selbtsbeschriftung">
{% endif %}
{% if icon == 'icon_plates' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_plates.svg'), 'asset') }}"
title="Beschriftungsplatten wechselbar"
alt="Icon Beschriftungsplatten wechselbar">
{% endif %}
{% if icon == 'icon_glue_and_screw' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_glue_and_screw.svg'), 'asset') }}"
title="Klebe- und Schraubmontage"
alt="Icon Klebe- und Schraubmontage">
{% endif %}
{% if icon == 'icon_screw_countersunk' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_screw_countersunk.svg'), 'asset') }}"
title="Schraubmontage mit Senkkopfschrauben"
alt="Icon Schraubmontage mit Senkkopfschrauben">
{% endif %}
{% if icon == 'icon_screw_flathead' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_screw_flathead.svg'), 'asset') }}"
title="Schraubmontage mit Flachkopfschrauben"
alt="Icon Schraubmontage mit Flachkopfschrauben">
{% endif %}
{% if icon == 'icon_glue' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_glue.svg'), 'asset') }}"
title="Klebemontage" alt="Klebemontage">
{% endif %}
{% if icon == 'icon_feeder_changer' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_feeder_changer.svg'), 'asset') }}"
title="Einlegerwechsel mittels Haftsauger"
alt="Icon Einlegerwechsel mittels Haftsauger">
{% endif %}
{% if icon == 'icon_paper_secured' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_paper_secured.svg'), 'asset') }}"
title="Papiereinleger gesichert"
alt="Icon Papiereinleger gesichert">
{% endif %}
{% if icon == 'icon_direct_printing' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_direct_printing.svg'), 'asset') }}"
title="Direktdruck" alt="Icon Direktdruck">
{% endif %}
{% if icon == 'icon_tactile_labeling' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_tactile_labeling.svg'), 'asset') }}"
title="Taktile Beschriftung möglich"
alt="Icon Taktile Beschriftung möglich">
{% endif %}
{% if icon == 'icon_stock' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_stock.svg'), 'asset') }}"
title="Lagerartikel, rascher Versand"
alt="Lagerartikel, rascher Versand">
{% endif %}
{% if icon == 'icon_feeder_changer_tools' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_feeder_changer_tools.svg'), 'asset') }}"
title="Einlegerwechsel mittels Werkzeug"
alt="Icon Einlegerwechsel mittels Werkzeug">
{% endif %}
{% if icon == 'icon_escape_sign' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_escape_sign.svg'), 'asset') }}"
title="Normgröße Fluchtwegschilder"
alt="Icon Noirmgröße Fluchtwegschilder">
{% endif %}
{% if icon == 'icon_sustainable' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_sustainable.svg'), 'asset') }}"
title="Umweltfreundliches Produkt"
alt="Icon Umweltfreundliches Produkt">
{% endif %}
{% if icon == 'icon_outdoor' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_outdoor.svg'), 'asset') }}"
title="Außenanwendung" alt="Icon Außenanwendung">
{% endif %}
{% if icon == 'icon_feeder_changer_without_tools' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_feeder_changer_without_tools.svg'), 'asset') }}"
title="Einlegerwechsel ohne Werkzeug"
alt="Icon Einlegerwechsel ohne Werkzeug">
{% endif %}
{% if icon == 'icon_opening_right' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_opening_right.svg'), 'asset') }}"
title="Öffnungsseite" alt="Icon Öffnungsseite">
{% endif %}
{% if icon == 'icon_led' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_led.svg'), 'asset') }}"
title="LED Beleuchtung" alt="Icon LED Beleuchtung">
{% endif %}
{% if icon == 'icon_flange' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_flange.svg'), 'asset') }}"
title="Flanschmontage" alt="Icon Flanschmontage">
{% endif %}
{% if icon == 'icon_quiver' %}
<img class="icon" height="20px" width="auto"
src="{{ asset(('bundles/schildersysteme/icons/icon_quiver.svg'), 'asset') }}"
title="Köchermontage" alt="Icon Köchermontage">
{% endif %}
{% endif %}
{% endfor %}
</div>
{{ dump(product) }}
{% endif %}
{% endblock %}
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
class="product-name"
title="{{ name }}">
{{ name }}
</a>
{% endblock %}
{% block component_product_box_variant_characteristics %}
<div class="product-characteristics">
{% if product.customFields.custom_product_bulettpoints_content %}
{{ product.customFields.custom_product_bulettpoints_content | raw }}
{% endif %}
</div>
{% endblock %}
{% block component_product_box_action %}
{% set isListPrice = product.calculatedPrice.listPrice.percentage > 0 %}
{% set listPrice = product.calculatedPrice.listPrice.price %}
<div class="flex-grow-1"></div>
{# <span class="list-price-line-through"> #}
{# {% if isListPrice %} #}
{# {{ "listing.strikePriceText"|trans|sw_sanitize }} {{ listPrice|currency }}{{ "general.star"|trans|sw_sanitize }}</span> #}
{# {% endif %} #}
{# </span> #}
<div class="product-action-wrapper {% if isListPrice and not displayFrom %} with-list-price{% endif %}">
{% block component_product_box_price_custom %}
<div class="product-price-wrapper">
<div class="product-variants">
{% sw_include '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
{% if product.customFields.sz_variants|length!=0 %}
({{ product.customFields.sz_variants|length }} {{ "listing.productVariants"|trans|sw_sanitize }})
{% endif %}
</div>
</div>
{% endblock %}
{% sw_include '@Storefront/storefront/component/product/card/action.html.twig' %}
</div>
{% endblock %}
{% block component_product_box_rating %}
{% endblock %}
{% block component_product_box_image %}
<div class="product-image-wrapper">
{% set variants = product.customFields.sz_variants %}
{# fallback if display mode is not set #}
{% set displayMode = displayMode ?: 'standard' %}
{# set display mode 'cover' for box-image with standard display mode #}
{% if layout == 'image' and displayMode == 'standard' %}
{% set displayMode = 'cover' %}
{% endif %}
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
title="{{ name }}"
class="position-relative product-image-link is-{{ displayMode }}">
{% if cover.url %}
{% set attributes = {
'alt': (cover.translated.alt ?: name),
'title': (cover.translated.title ?: name)
} %}
{% sw_thumbnails 'product-image-thumbnails' with {
media: cover,
sizes: {
'xs': '501px',
'sm': '315px',
'md': '427px',
'lg': '333px',
'xl': '284px'
},
attributes:{
'class':'product-image is-standard'
}
} %}
{% if displayMode == 'cover' or displayMode == 'contain' %}
{% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
{% endif %}
{% set secondCoverId = product.customFields.custom_second_product_cover_image %}
{% if secondCoverId %}
{% set media = searchMedia([secondCoverId], context.context) %}
{% set secondCover = media.get(product.customFields.custom_second_product_cover_image) %}
{% endif %}
{% if secondCover %}
{% sw_thumbnails 'product-image-thumbnails' with {
media: secondCover,
sizes: {
'xs': '501px',
'sm': '315px',
'md': '427px',
'lg': '333px',
'xl': '284px'
},
attributes:{
'class':'product-image is-standard second-cover'
}
} %}
{% endif %}
{% else %}
<div class="product-image-placeholder">
{% sw_icon 'placeholder' style {
'size': 'fluid'
} %}
</div>
{% endif %}
</a>
{# endif #}
{% if config('core.cart.wishlistEnabled') %}
{% block component_product_box_wishlist_action %}
{% endblock %}
{% endif %}
</div>
<template class="dynamically-load-tns"></template>
{% endblock %}