{% block cytex_detail_buy_container %}
<section class="product-detail-price-main-container cytex-custom-quantity-field-settings ">
<div itemprop="offers"
itemscope
itemtype="{% if product.calculatedPrices|length > 1 %}http://schema.org/AggregateOffer{% else %}http://schema.org/Offer{% endif %}">
{% block buy_widget_data %}
{% if galleryBuybox or productDetail.site %}
{% block component_product_box_badges %}
{% sw_include '@Storefront/storefront/component/product/card/badges.html.twig' with {
productDetail: {
site: true,
discount: false
}
}%}
{% endblock %}
{% endif %}
{% block cytex_detail_data_rich_snippet_url %}
<meta itemprop="url"
content="{{ seoUrl('frontend.detail.page', { productId: product.id }) }}"/>
{% endblock %}
{% block cytex_detail_data_rich_snippet_price_range %}
{% if product.calculatedPrices|length > 1 %}
{% set lowestPrice = false %}
{% set highestPrice = false %}
{% for price in product.calculatedPrices %}
{% if not lowestPrice or price.unitPrice < lowestPrice %}
{% set lowestPrice = price.unitPrice %}
{% endif %}
{% if not highestPrice or price.unitPrice > highestPrice %}
{% set highestPrice = price.unitPrice %}
{% endif %}
{% endfor %}
<meta itemprop="lowPrice" content="{{ lowestPrice }}"/>
<meta itemprop="highPrice" content="{{ highestPrice }}"/>
<meta itemprop="offerCount" content="{{ product.calculatedPrices|length }}"/>
{% endif %}
{% endblock %}
{% block cytex_detail_data_rich_snippet_price_currency %}
<meta itemprop="priceCurrency"
content="{{ context.currency.translated.shortName }}"/>
{% endblock %}
{% block cytex_detail_headline %}
<div class="align-items-center product-detail-headline">
{{ block("page_product_detail_name", "@Storefront/storefront/page/product-detail/headline.html.twig") }}
</div>
{% endblock %}
{% block cytex_detail_ordernumbers_container %}
<section class="product-detail-order-numbers-container">
{% if product.productNumber %}
<p class="product-detail-ordernumber-container">
{% block cytex_detail_ordernumber_label %}
<span class="product-detail-ordernumber-label">
{{ "detail.productNumberLabel"|trans|sw_sanitize }}
</span>
{% endblock %}
{% block cytex_detail_ordernumber %}
<meta itemprop="productID"
content="{{ product.id }}"/>
<span class="product-detail-ordernumber"
itemprop="sku">
{{ product.productNumber }}
</span>
{% endblock %}
</p>
{% endif %}
{% if product.ean %}
<p class="product-detail-order-ean-container">
{% block buy_widget_order_ean_label %}
<span class="product-detail-ean-number-label">
{{ "detail.productEanLabel"|trans|sw_sanitize }}
</span>
{% endblock %}
{% block page_product_detail_ean_number %}
<span class="product-detail-ean-number"
itemprop="sku">
{{ page.product.ean }}
</span>
{% endblock %}
</p>
{% endif %}
<div class="product-detail-line-graphic"></div>
{% block cytex_detail_unit_amount %}
<section class="product-detail-amount-container">
<div class="product-detail-amount-text">
<span>
{{ "component.product.feature.label.amount"|trans|sw_sanitize }}
</span>
{{ product.extensions.additionalProductInfo.translated.customField2|raw }}
</div>
</section>
{% endblock %}
{% block cytex_detail_readmore_button %}
<button id="cytex-product-detail-readmore-button"
class="cytex-btn-hover-light"
data-product-detail-readmore-button>
{{ "product.detail.button.readmore"|trans|sw_sanitize }}
</button>
{% endblock %}
{% block cytex_detail_manufactorer_logo %}
{% if page.product.manufacturer %}
<div class="col-md-auto p-0 product-detail-manufacturer">
{% block page_product_detail_manufacturer_inner %}
{% block page_product_detail_manufacturer_link %}
<div class="product-detail-manufacturer-link">
{% if page.product.manufacturer.media %}
{% block page_product_detail_manufacturer_logo %}
<img src="{{ page.product.manufacturer.media|sw_encode_media_url }}"
class="product-detail-manufacturer-logo"
alt="{{ page.product.manufacturer.translated.name }}"/>
{% endblock %}
{% else %}
{% block page_product_detail_manufacturer_text %}
{{ page.product.manufacturer.translated.name }}
{% endblock %}
{% endif %}
</div>
{% endblock %}
{% endblock %}
</div>
{% endif %}
{% endblock %}
</section>
{% endblock %}
{% block cytex_detail_price_and_buyform %}
<section class="product-detail-priceAndForm-container">
{% block cytex_detail_price %}
{% if context.taxState == "gross" %}
{% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
{% else %}
{% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
{% endif %}
<div class="product-detail-price-info-container">
{% sw_include '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' with {
taxText: taxText
} %}
</div>
{% endblock %}
{% block cytex_detail_buy_form %}
{% if product.active %}
<div class="product-detail-form-container mt-3">
{% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
{% if config('CoeWishlistSw6.config.wishlistButtonOnDetail') %}
<section class="product-detail-wishlist-container col-12 d-flex justify-content-end p-0">
{% sw_include '@Storefront/storefront/component/wishlist/button/add-note.html.twig' %}
</section>
{% endif %}
</div>
{% endif %}
{% endblock %}
{% if config('core.cart.wishlistEnabled') %}
{% block cytex_detail_wishlist %}
{% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
showText: true,
size: 'md',
productId: product.id
} %}
{% endblock %}
{% endif %}
</section>
{% endblock %}
{% set remoteClickOptions = {
selector: "#review-tab-" ~ product.id,
scrollToElement: true
} %}
{% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
{% block cytex_detail_reviews %}
{% if product.ratingAverage > 0 and totalReviews > 0 and config('core.listing.showReview') %}
<div class="product-detail-reviews">
{% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
points: 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='{{ remoteClickOptions|json_encode }}'
href="{{ reviewTabHref }}"
aria-controls="review-tab-pane">
{{ totalReviews }}
{{ "detail.reviewLinkText"|trans({'%count%': totalReviews})|sw_sanitize }}
</a>
</div>
{% endif %}
{% endblock %}
{% endblock %}
{% block cytex_detail_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 %}
</div>
</section>
{% endblock %}