{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{% block base_main_inner %}
{% set fields = page.product.translated.customFields %}
{% if fields.wn_pdp_headerimage %}
<div class="detail-motion-image-wrapper">
{% set motionImageID = fields.wn_pdp_headerimage %}
{# fetch media as batch - optimized for performance #}
{% set mediaCollection = searchMedia([motionImageID], context.context) %}
{# extract single media object #}
{% set motionImage = mediaCollection.get(motionImageID) %}
{% sw_thumbnails 'navigation-flyout-teaser-image-thumbnails' with {
media: motionImage,
attributes: {
'class': 'detail-motion-image',
'alt': (motionImage.alt ?: ''),
'title': (motionImage.title ?: ''),
'style': (fields.wn_pdp_headerimage_additional_styles)
}
} %}
</div>
{% else %}
<div class="detail-motion-spacer"></div>
{% endif %}
{{ parent() }}
{% endblock %}
{% block page_product_detail_buy %}
<div class="col-lg-5 product-detail-buy">
{% block page_product_detail_reviews %}
{% if page.product.ratingAverage > 0 and shopware.config.detail.showReviews %}
<p class="product-detail-reviews">
{% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
points: page.product.ratingAverage,
style: 'text-primary'
} %}
<a data-toggle="tab"
class="product-detail-reviews-link"
data-offcanvas-tabs="true"
data-remote-click="true"
data-remote-click-options='{
"selector": "#review-tab",
"scrollToElement": true
}'
href="#review-tab-pane"
aria-controls="review-tab-pane">
{{ page.product.ratingAverage }} / {{ page.reviews.totalReviews}}
{{ "detail.reviewLinkText"|trans({'%count%': page.reviews.totalReviews})|sw_sanitize }}
</a>
</p>
{% endif %}
{% endblock %}
<div class="product-detail-list custom-listing-list-wrapper">
{% if page.product.translated.customFields.wndev_ads_custom_list %}
{{ page.product.translated.customFields.wndev_ads_custom_list|raw }}
{% endif %}
</div>
{% if page.product.translated.customFields.sal_product_badge1 %}
<div class="product-badge">
{% set Badge1ID = page.product.translated.customFields.sal_product_badge1 %}
{# fetch media as batch - optimized for performance #}
{% set mediaCollection = searchMedia([Badge1ID], context.context) %}
{# extract single media object #}
{% set Badge1 = mediaCollection.get(Badge1ID) %}
{% sw_thumbnails 'vlog-badge-listing' with {
media: Badge1,
attributes: {
'class': 'vlog-badge-image',
'alt': (Badge1.alt ?: ''),
'title': (Badge1.title ?: ''),
'data-object-fit': 'cover',
'height':'55',
'width':'83'
}
} %}
</div>
{% endif %}
{% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
<div class="bl-suche">
<h3>Persönliche Beratung</h3>
<p>Hier finden Sie Ihren persönlichen Ansprechpartner:</p>
{% sw_include '@Storefront/storefront/component/bl-suche.html.twig' %}
</div>
</div>
{% endblock %}
{% block page_product_detail_breadcrumb %}
<div class="breadcrumb product-breadcrumb container" itemscope itemtype="http://schema.org/BreadcrumbList">
{% sw_include '@Storefront/storefront/component/product/breadcrumb.html.twig' with {
navigationTree: page.header.navigation.tree,
categoryTree: page.product.categoryTree|last,
product: page.product
} only %}
<div class="breadcrumb-placeholder">
{% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
</div>
<div itemprop="itemListElement" itemscope
itemtype="http://schema.org/ListItem">
<span itemprop="name" class="is--active">{{ page.product.translated.name }}</span>
</div>
</div>
{% endblock %}