{% block buy_widget %}
{% block buy_widget_rich_snippets %} {% block buy_widget_rich_snippets_brand %} {% if product.manufacturer %}
{% endif %} {% endblock %} {% block buy_widget_rich_snippets_gtin13 %} {% if product.ean %} {% endif %} {% endblock %} {% block buy_widget_rich_snippets_mpn %} {% if product.manufacturerNumber %} {% endif %} {% endblock %} {% block buy_widget_rich_snippets_weight %} {% if product.measurements.type('weight') %} {% set weightUnit = product.measurements.type('weight').unit %} {% set weightValue = product.measurements.type('weight').value %} {% else %} {% set weightUnit = 'kg' %} {% set weightValue = product.weight %} {% endif %} {% if weightValue and weightValue > 0 %} {% endif %} {% endblock %} {% block buy_widget_rich_snippets_height %} {% if product.measurements.type('height') %} {% set heightUnit = product.measurements.type('height').unit %} {% set heightValue = product.measurements.type('height').value %} {% else %} {% set heightUnit = 'mm' %} {% set heightValue = product.height %} {% endif %} {% if heightValue and heightValue > 0 %} {% endif %} {% endblock %} {% block buy_widget_rich_snippets_width %} {% if product.measurements.type('width') %} {% set widthUnit = product.measurements.type('width').unit %} {% set widthValue = product.measurements.type('width').value %} {% else %} {% set widthUnit = 'mm' %} {% set widthValue = product.width %} {% endif %} {% if widthValue and widthValue > 0 %} {% endif %} {% endblock %} {% block buy_widget_rich_snippets_depth %} {% if product.measurements.type('length') %} {% set lengthUnit = product.measurements.type('length').unit %} {% set lengthValue = product.measurements.type('length').value %} {% else %} {% set lengthUnit = 'mm' %} {% set lengthValue = product.length %} {% endif %} {% if lengthValue and lengthValue > 0 %} {% endif %} {% endblock %} {% block buy_widget_rich_snippets_release_date %} {% if product.releaseDate %} {% endif %} {% endblock %} {% endblock %} {% block buy_widget_buy_container %}
{% block buy_widget_data %} {% block buy_widget_data_rich_snippet_url %} {% endblock %} {% block buy_widget_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 %} {% endif %} {% endblock %} {% block buy_widget_data_rich_snippet_price_currency %} {% endblock %} {% block buy_widget_price %}
{% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
{% endblock %} {% block buy_widget_tax %}
{% if context.taxState == 'gross' %} {% set taxText = 'general.grossTaxInformation'|trans|sw_sanitize %} {% else %} {% set taxText = 'general.netTaxInformation'|trans|sw_sanitize %} {% endif %}

{% block buy_widget_tax_link %} {% set cmsPath = path('frontend.cms.page', { id: config('core.basicInformation.shippingPaymentInfoPage') }) %} {% endblock %}

{% endblock %} {% 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, excludedViewports: ['XS'] } %} {% endif %} {% if reviewTabHref is not defined %} {% set reviewTabHref = '#review-tab-' ~ product.id ~ '-pane' %} {% endif %} {% set reviewTabContent = 'review-tab-' ~ product.id ~ '-pane' %}
{% sw_include '@Storefront/storefront/component/review/rating.html.twig' with { points: product.ratingAverage, style: 'text-primary' } %} {{ totalReviews }} {{ 'detail.reviewLinkText'|trans({'%count%': totalReviews})|sw_sanitize }}
{% endif %} {% endblock %} {% block buy_widget_delivery_informations %}
{% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
{% endblock %} {% endblock %} {% block buy_widget_configurator_include %} {% if product.parentId and configuratorSettings|length > 0 %}
{% sw_include '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
{% endif %} {% endblock %} {% block buy_widget_buy_form %} {% if product.active %}
{% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
{% endif %} {% endblock %}
{% endblock %} {% if config('core.cart.wishlistEnabled') %} {% block buy_widget_wishlist %} {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with { showText: true, size: 'sm', productId: product.id } %} {% endblock %} {% endif %} {% block buy_widget_ordernumber_container %} {% if product.productNumber %}
{% block buy_widget_ordernumber_label %} {{ 'detail.productNumberLabel'|trans|sw_sanitize }} {% endblock %} {% block buy_widget_ordernumber %} {{ product.productNumber }} {% endblock %}
{% endif %} {% endblock %}
{% endblock %}