{% 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">
{{ block('buy_widget_rich_snippets') }}
{% 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 %}
{% set loginCustomer = context.customer %}
{% set hidePrice = config('SprinixHidePrice.hidePrice.hidePrices') %}
<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') }}
{% if hidePrice and not(loginCustomer) %}
<div class="login_block">
<a href="{{ path('frontend.account.login') }}"
class="btn btn-block btn-buy">
{{ "listing.priceAfterLogin"|trans|sw_sanitize }}
</a>
</div>
{% else %}
{{ block('buy_widget_data_rich_snippet_price_range') }}
{{ block('buy_widget_data_rich_snippet_price_currency') }}
{{ block('buy_widget_price') }}
{{ block('buy_widget_tax') }}
{% endif %}
{# @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') }}
{% endblock %}
{{ block('buy_widget_configurator_include') }}
{% if not(hidePrice) or (loginCustomer) %}
{{ block('buy_widget_buy_form') }} {# if show price #}
{% endif %}
</div>
{% block page_product_detail_add_to_compare_button %} {# from Frosch product-compare plugin #}
<div class="mb-2">
{% sw_include '@Storefront/storefront/component/product/card/compare-button.html.twig' with {
navigationTree: page.header.navigation.tree,
categoryTree: page.product.categoryTree|last,
product: page.product
} only %}
</div>
{% endblock %}
{% endblock %}
{% if config('core.cart.wishlistEnabled') %}
{{ block('buy_widget_wishlist') }}
{% endif %}
{% block buy_widget_ordernumber_container %}
{% if product.productNumber %}
<div class="product-detail-ordernumber-container {% if product.parentId and configuratorSettings|length > 0 %} is-hidden{% endif %}">
{% block buy_widget_ordernumber_label %}
<span class="product-detail-ordernumber-label">
{{ "detail.productNumberLabel"|trans|sw_sanitize }}
</span>
{% endblock %}
{% block buy_widget_ordernumber %}
<meta itemprop="productID"
content="{{ product.id }}"/>
<span class="product-detail-ordernumber"
itemprop="sku">
{{ product.productNumber }}
</span>
{% endblock %}
</div>
{% endif %}
{% endblock %}
{% block buy_widget_custom_fields_container %}
{% set customFields = element.data.product.translated.customFields %}
<div class="row">
<div class="col-6">
<div class="font-weight-bold mb-1">{{ 'detail.features'|trans|sw_sanitize }}</div>
<div>
{{ customFields.migration_ShopwarewithAPI_product_teaser_text|default('')|sw_sanitize}}
</div>
</div>
<div class="col-6">
<div class="row">
<div class="col-auto">
<div class="font-weight-bold mb-1">{{ 'detail.packagingUnit'|trans|sw_sanitize }}</div>
<div>
{{ customFields.migration_ShopwarewithAPI_product_produkt_ve|default('')|sw_sanitize }}
</div>
</div>
</div>
{% if product.deliveryTime %}
<div class="row">
<div class="col-auto">
<div class="font-weight-bold mb-1 mt-3">{{ 'detail.deliveryStatus'|trans|sw_sanitize }}</div>
<div>
{{ block('buy_widget_delivery_informations') }}
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% block buy_widget_main_features_container %}
{% block element_buy_box_properties %}
<div class="product-detail-main-features-container">
{% set group = product.sortedProperties %}
{% sw_include '@Storefront/storefront/component/product/teaser-properties.html.twig' with {
group: product.sortedProperties
} %}
</div>
{% endblock %}
{% endblock %}
</div>
{% endblock %}