{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{% block page_product_detail %}
<div class="product-detail{% if page.product.customFields.custom_article_new_design %} new-design{% endif %}"
itemscope
itemtype="https://schema.org/Product">
{% block page_product_detail_inner %}
{% block page_product_detail_content %}
<div class="product-detail-content">
{% if not page.product.customFields.custom_article_new_design %}
{% block page_product_detail_headline %}
<div class="row align-items-center product-detail-headline">
{% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
</div>
{% endblock %}
{% endif %}
{% set mediaItems = page.product.media.media %}
{% block page_product_detail_main %}
<div class="row product-detail-main">
{% block page_product_detail_media %}
<div class="col-lg-8 product-detail-media">
{% if page.product.media %}
{% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
'mediaItems': mediaItems,
'zoom': true,
'zoomModal': true,
'displayMode': 'contain',
'gutter': 5,
'minHeight': '430px',
'navigationArrows': 'inside',
'navigationDots': 'inside',
'galleryPosition': 'left',
'isProduct': true,
'fallbackImageTitle': page.product.translated.name,
'startIndexThumbnails': page.product.cover.position + 1,
'startIndexSlider': page.product.cover.position + 1
} %}
{% endif %}
{% if page.product.categoryTree and shopware.config.TdsOrlob.config.salesCategoryId
and shopware.config.TdsOrlob.config.salesCategoryId in page.product.categoryTree %}
<div class="sales-badge">
<img src="{{ asset('assets/sales-badge.png', '@TdsOrlob') }}" alt="Sale" class="sales-badge-icon"/>
</div>
{% endif %}
{% if page.product.categoryTree and shopware.config.TdsOrlob.config.newCategoryId
and shopware.config.TdsOrlob.config.newCategoryId in page.product.categoryTree %}
<div class="new-badge">
<img src="{{ asset('assets/new-badge.png', '@TdsOrlob') }}" alt="New" class="new-badge-icon"/>
</div>
{% endif %}
</div>
{% endblock %}
{% block page_product_detail_buy %}
<div class="col-lg-4 product-detail-buy">
{% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
</div>
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}
{% if not page.product.customFields.custom_article_new_design %}
{% block page_product_detail_tabs %}
<div class="product-detail-tabs">
{% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
</div>
{% endblock %}
{% endif %}
{% block page_product_detail_cross_selling %}
{% if page.crossSellings.elements is defined and page.crossSellings.elements|filter(item => item.total > 0)|length > 0 %}
<div style="{% if page.product.customFields.custom_article_color %}background-color: {{ page.product.customFields.custom_article_color }}B3;{% endif %}"
class="product-detail-tabs product-detail-cross-selling{% if page.product.customFields.custom_article_new_design %} new-design{% endif %}">
<div class="container">
{% sw_include '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' with {
crossSellings: page.crossSellings
} %}
</div>
</div>
{% endif %}
{% endblock %}
{% endblock %}
</div>
{% endblock %}