{% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
{% block buy_widget %}
<div class="product-detail-buy{% if elementId %}-{{ elementId }}{% endif %} js-magnifier-zoom-image-container boxed-layout py-10">
{% block buy_widget_rich_snippets %}
{{ parent() }}
{% endblock %}
{% if not feature('FEATURE_NEXT_16992') %}
{# @deprecated tag:v6.5.0 tag:)(FEATURE_NEXT_16992) - Block will be removed in v6.5.0 #}
{% block buy_widget_not_available %}
{% endblock %}
{% endif %}
{% block buy_widget_buy_container %}
<div itemprop="offers"
itemscope
itemtype="{% if product.calculatedPrices|length > 1 %}http://schema.org/AggregateOffer{% else %}http://schema.org/Offer{% endif %}">
{% block buy_widget_data %}
{% block buy_widget_data_rich_snippet_url %}
{{ parent() }}
{% endblock %}
{% block buy_widget_data_rich_snippet_price_range %}
{{ parent() }}
{% endblock %}
{% block buy_widget_data_rich_snippet_price_currency %}
{{ parent() }}
{% endblock %}
{% block page_product_detail_brand %}
{% if page.product.manufacturer %}
<div class="product-detail-brand">
{{ page.product.manufacturer.translated.name }}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_headline %}
<div class="product-detail-headline">
{% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
</div>
{% endblock %}
{% block buy_widget_configurator_include %}
{% if product.parentId and configuratorSettings|length > 0 %}
<div class="product-detail-configurator-container">
{% sw_include '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
</div>
{% endif %}
{% endblock %}
{% block product_offcanvas_tabs %}
{% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
{% endblock %}
{% block buy_widget_price %}
<div class="product-detail-price-container mt-4">
{% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
</div>
{% endblock %}
{# @deprecated tag:v6.5.0 - Will be removed - The variable will be moved into block `buy_widget_reviews` #}
{% set remoteClickOptions = {
selector: "#review-tab-" ~ product.id,
scrollToElement: true
} %}
{# @deprecated tag:v6.5.0 - Will be removed - The variable will be moved into block `buy_widget_reviews` #}
{% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
{% block buy_widget_reviews %}
{% if product.ratingAverage > 0 and totalReviews > 0 and config('core.listing.showReview') %}
{% if remoteClickOptions is not defined %}
{% set remoteClickOptions = {
selector: "#review-tab-" ~ product.id,
scrollToElement: true
} %}
{% endif %}
{% if reviewTabHref is not defined %}
{% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
{% endif %}
<div class="product-detail-reviews">
{% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
points: product.ratingAverage,
style: 'text-primary'
} %}
<a {{ dataBsToggleAttr }}="tab"
class="product-detail-reviews-link"
data-offcanvas-tabs="true"
data-remote-click="true"
data-remote-click-options='{{ remoteClickOptions|json_encode }}'
href="{{ reviewTabHref }}"
aria-controls="review-tab-pane">
{{ totalReviews }}
{{ "detail.reviewLinkText"|trans({'%count%': totalReviews})|sw_sanitize }}
</a>
</div>
{% endif %}
{% endblock %}
{% block buy_widget_delivery_informations %}
<div class="product-detail-delivery-information">
{% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
</div>
{% endblock %}
{% endblock %}
{% block buy_widget_buy_form %}
{% if product.active %}
<div class="product-detail-form-container">
{% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
</div>
{% endif %}
{% endblock %}
{% block buy_widget_upsell_popup %}
<section id="upsell-popup-container" data-upsell-popup="true"></section>
{% endblock %}
{% block buy_widget_usps %}
{% set usps = [
"company.headerCarousel_1",
"company.headerCarousel_2",
"company.headerCarousel_3"
] %}
{% if usps %}
<div class="product-detail-usps mt-6">
<ul class="grid grid-gap-2">
{% for item in usps %}
<li class="product-detail-usp text-sm text-black-600">
{# TODO looks like the HERO icons pack is not accepted yet. Look at later. #}
{% sw_icon 'check' style{'pack': 'hero'} %}
{{ item|trans|raw }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}