{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
{% block component_product_box %}
{% if product %}
{% set name = product.translated.name %}
{% set id = product.id %}
{% set cover = product.cover.media %}
{% set shortDescription = product.translated.customFields.grimm_customFields_short_desc %}
{% set variation = product.variation %}
{% if product.mkxBVParent %}
{% set name = product.mkxBVParent.translated.name %}
{% set cover = product.mkxBVParent.cover.media %}
{% set shortDescription = product.mkxBVParent.translated.customFields.grimm_customFields_short_desc %}
{% endif %}
<div class="card list-box product-box">
{% block component_product_box_content %}
<div class="list-body col-12">
{% block component_product_box_badges %}
{{ parent() }}
{% endblock %}
{% block component_product_box_rich_snippets %}
{{ parent() }}
{% endblock %}
{% block component_product_box_image %}
<div
class="product-image-wrapper col-3">
{# 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="product-image-link is-{{ displayMode }}">
{% if cover.url %}
{% set attributes = {
'class': 'product-image is-'~displayMode,
'alt': (cover.translated.alt ?: name),
'title': (cover.translated.title ?: name),
'loading': 'lazy'
} %}
{% if displayMode == 'cover' or displayMode == 'contain' %}
{% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
{% endif %}
{% sw_thumbnails 'product-image-thumbnails' with {
media: cover,
sizes: {
'xs': '501px',
'sm': '315px',
'md': '427px',
'lg': '333px',
'xl': '284px'
}
} %}
{% else %}
<div class="product-image-placeholder">
{% sw_icon 'placeholder' style {
'size': 'fluid'
} %}
</div>
{% endif %}
</a>
{% if config("core.cart.wishlistEnabled") %}
{% block component_product_box_wishlist_action %}
{{ parent() }}
{% endblock %}
{% endif %}
</div>
{% endblock %}
{% block component_product_box_info %}
<div class="product-info">
{% block component_product_box_name %}
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
class="product-name"
title="{{ name }}">
{{ name }}
</a>
{% endblock %}
{% if "product.articleNumber" and product.productNumber %}
<p class="product-info__article-number">
{{ "product.articleNumber"|trans|sw_sanitize }}
{{ product.productNumber }}
</p>
{% endif %}
{% block component_product_box_rating %}{% endblock %}
{% block component_product_box_variant_characteristics %}{% endblock %}
{% if product.translated.customFields.grimm_customFields_short_desc %}
<p class="product-info__description">
{{ shortDescription }}
</p>
{% endif %}
{% block component_product_box_description %}{% endblock %}
</div>
{% endblock %}
{% block component_product_box_last_section %}
<div class="product-last-section">
{% block component_product_box_price %}
<div class="product_additional_info">
{% sw_include '@Storefront/storefront/component/product/card/price-uvp.html.twig' %}
{% sw_include '@Storefront/storefront/component/product/card/price-discount-amount.html.twig' %}
</div>
<div class="product-last-section__price-taxes">
{% set requestOnly = product.translated.customFields.grimm_customfields_productRequest_only %}
{% if requestOnly %}
{% set showUVP = product.translated.customFields.grimm_customfields_productRequest_showUVP %}
{% if showUVP %}
{% sw_include '@Storefront/solution360/grimm/product/request-only-uvp-display.html.twig' with {productListing: true} %}
{% else %}
<div class="product-price" style="height: 28px">
{{ "product.price.priceUponRequest"|trans|sw_sanitize }}
</div>
{% endif %}
</div>
{% else %}
{% sw_include '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
{% sw_include '@Storefront/storefront/component/product/card/price-taxes.html.twig' %}
</div>
{% sw_include '@Storefront/storefront/component/product/price-unit-info.html.twig' with { 'product': product } %}
{% endif %}
{% endblock %}
<div class="d-flex align-items-end">
{# delivery time #}
{% sw_include '@Storefront/storefront/component/product/card/product-delivery-info.html.twig' %}
</div>
{% block component_product_box_action %}
{% sw_include '@Storefront/storefront/component/product/card/action-list-view.html.twig' %}
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}
</div>
{% endif %}
{% endblock %}