{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{% block page_product_detail_breadcrumb %}
{% if app.request.attributes.get('theme-name') != 'CogiThemeTulip' %}
{{ parent() }}
{% else %}
{% set padT = shopware.config.CogiThemeTulip.config.productBreadcrumbPaddingTop ?: '0px' %}
{% set padB = shopware.config.CogiThemeTulip.config.productBreadcrumbPaddingBottom ?: '0px' %}
{% set padL = shopware.config.CogiThemeTulip.config.productBreadcrumbPaddingLeft ?: '0px' %}
{% set padR = shopware.config.CogiThemeTulip.config.productBreadcrumbPaddingRight ?: '0px' %}
<div class="breadcrumb product-breadcrumb container mb-4"
style="padding-top:{{ padT }};padding-bottom:{{ padB }};padding-left:{{ padL }};padding-right:{{ padR }};">
{% if shopware.config.CogiThemeTulip.config.showBreadcrumbLabel %}
<span class="breadcrumb-label">{{ "cogi.theme.tulip.navigation.youAreHere"|trans }} </span>
{% endif %}
{% sw_include '@Storefront/storefront/component/product/breadcrumb.html.twig' with {
navigationTree: page.header.navigation.tree,
categoryTree: page.product.categoryTree|last,
product: page.product,
initCall: true
} only %}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_headline %}
{% endblock %}
{% block page_product_detail_media %}
{% if app.request.attributes.get('theme-name') != 'CogiThemeTulip' %}
{{ parent() }}
{% else %}
<div class="col-lg-5 product-detail-media">
{% if page.product.media %}
{% sw_include 'storefront/element/cms-element-image-gallery.html.twig' with {
'mediaItems': mediaItems,
'zoom': true,
'zoomModal': true,
'displayMode': 'cover',
'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,
'showDisclaimer': true
} %}
{% endif %}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_buy %}
{% if app.request.attributes.get('theme-name') != 'CogiThemeTulip' %}
{{ parent() }}
{% else %}
<div class="col-lg-6 offset-lg-1 product-detail-buy js-magnifier-zoom-image-container">
<div class="row align-items-center product-detail-headline">
{% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
</div>
{% set custom = page.product.getCustomFields() %}
{% if custom.cogi_theme_tulip_product_bullet_area %}
{% set bulletIcon = custom.cogi_theme_tulip_product_bullet_area_bullet_icon ?: shopware.config.CogiThemeTulip.config.bulletAreaDefaultBulletIcon %}
<div class="bullet-area {% if bulletIcon %}bullet-icon-{{ bulletIcon }}{% endif %} mb-3">
{{ custom.cogi_theme_tulip_product_bullet_area|raw }}
</div>
{% endif %}
<hr>
{% sw_include 'storefront/page/product-detail/additional-infos.html.twig' %}
{% sw_include 'storefront/page/product-detail/buy-widget.html.twig' %}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_cross_selling %}
{% if page.crossSellings|length %}
{{ parent() }}
{% endif %}
{% endblock %}