{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
{% block component_product_box_content %}
{% set type = 'free' %}
{% if product.extensions.dvdwParticipations and product.extensions.dvdwParticipations.elements | length > 0 %}
{% set participation = product.extensions.dvdwParticipations | first %}
{% if participation and participation.orderLineItem and participation.orderLineItem.extensions.dvdwTicket %}
{% set type = participation.orderLineItem.extensions.dvdwTicket.type %}
{% endif %}
{% endif %}
{% set showPromoPhase = context.extensions.currentDvdwEvent.phase === 'phase-promo-show' %}
{% set usePromoPhase = context.extensions.currentDvdwEvent.phase === 'phase-promo-use' %}
<div class="card-body">
{% block component_product_box_badges %}
{{ parent() }}
{% endblock %}
{% block component_product_box_rich_snippets %}
{{ parent() }}
{% endblock %}
{% block component_product_main_container %}
<div class="product-main-container">
{% block component_product_box_image %}
<div class="product-image-wrapper">
{# 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)
} %}
{% if displayMode == 'cover' or displayMode == 'contain' %}
{% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
{% endif %}
{% sw_thumbnails 'product-image-thumbnails' with {
media: cover,
sizes: sizes
} %}
{% else %}
<div class="product-image-placeholder">
{% sw_icon 'placeholder-icon' style {
pack: 'custom-icons',
size: 'fluid'
} %}
</div>
{% endif %}
</a>
{% if config('core.cart.wishlistEnabled') %}
{% block component_product_box_wishlist_action %}
{% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
appearance: 'circle',
productId: id
} %}
{% endblock %}
{% endif %}
</div>
{% endblock %}
{% block component_product_box_info %}
<div class="product-info">
{% block component_product_box_rating %}
{% endblock %}
{% block component_product_box_name %}
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
class="product-name"
title="{{ name }}">
<h3>{{ name }}</h3>
</a>
{% endblock %}
{% block component_product_box_variant_characteristics %}
{% endblock %}
{% block component_product_box_categories %}
<div class="product-categories">
{% if product.categories %}
{% sw_include '@DvdwDirectory/storefront/component/product/custom-product-category.html.twig' ignore missing with {
minimal: true,
product: product
} %}
{% endif %}
</div>
{% endblock %}
{% block component_product_box_description %}
<div class="product-description
{% if product.translated.description|length > 75 %} tooltip-target {% endif %}">
{{ product.translated.description|striptags|raw }}
</div>
{% endblock %}
{% block component_product_box_price %}
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}
{% block component_product_box_line %}
<hr class="image-info-line">
{% endblock %}
{% set participation = product.extensions.dvdwParticipations.elements | first %}
{% set promotion = participation.dvdwPromotion %}
{% if (showPromoPhase or usePromoPhase ) and promotion %}
{% block component_product_box_promotion_info %}
{% sw_include '@Storefront/storefront/page/product-detail/webshop-promotions.html.twig' ignore missing with {
product: product,
promotion: promotion,
isListingView: true
} %}
{% endblock %}
{% endif %}
{% block component_product_box_action %}
{% sw_include '@Storefront/storefront/component/product/card/action.html.twig' with {
type: type,
showPromoPhase: showPromoPhase,
usePromoPhase: usePromoPhase
} %}
{% endblock %}
</div>
{% endblock %}