{% sw_extends '@parent/storefront/page/product-detail/buy-widget.html.twig' %}
{% block page_product_detail_rich_snippets %}{% endblock %}
{% block page_product_detail_data_rich_snippet_url %}{% endblock %}
{% block page_product_detail_data_rich_snippet_price_currency %}{% endblock %}
{% block page_product_detail_data_rich_snippet_price_range %}
{% if page.product.calculatedPrices|length > 1 %}
{% set lowestPrice = false %}
{% set highestPrice = false %}
{% for price in page.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 page_product_detail_ordernumber_container %}
<p class="nxs-custom-description">
{% if page.product.translated.customFields.nxs_attributes_short_description %}
{% set textShortDesc = page.product.translated.customFields.nxs_attributes_short_description|raw|striptags|split(' ') %}
<span class="d-none d-md-block">
{{ page.product.translated.customFields.nxs_attributes_short_description|raw|striptags }}
</span>
{% endif %}
</p>
<div class="nxs-custom-info-list">
{{ page.product.translated.customFields.migration_attribute_4_product_usps_178|raw }}
</div>
{% endblock %}
{% block page_product_detail_tax %}
{% set taxRate = page.product.calculatedPrice.taxRules.elements|first.taxRate %}
<div class="product-detail-tax-container">
{% if context.taxState == "gross" %}
{% if taxRate %}
{% set taxText = "general.grossTaxWithRate"|trans({'%rate%' : taxRate})|sw_sanitize %}
{% else %}
{% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
{% endif %}
{% else %}
{% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
{% endif %}
<p class="product-detail-tax">
{% block page_product_detail_tax_link %}
<a class="product-detail-tax-link"
href="{{ path('frontend.cms.page',{ id: shopware.config.core.basicInformation.shippingPaymentInfoPage }) }}"
title="{{ taxText }}"
data-toggle="modal"
data-url="{{ path('frontend.cms.page',{ id: shopware.config.core.basicInformation.shippingPaymentInfoPage }) }}">
{{ taxText }}
</a>
{% endblock %}
</p>
</div>
{% endblock %}
{% block page_product_detail_reviews %}
{% endblock %}