{% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
{% block buy_widget_data %}
{% block buy_widget_data_rich_snippet_url %}
<meta itemprop="url"
content="{{ seoUrl('frontend.detail.page', { productId: product.id }) }}"/>
{% 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 %}
<meta itemprop="lowPrice" content="{{ lowestPrice }}"/>
<meta itemprop="highPrice" content="{{ highestPrice }}"/>
<meta itemprop="offerCount" content="{{ product.calculatedPrices|length }}"/>
{% endif %}
{% endblock %}
{% block buy_widget_data_rich_snippet_price_currency %}
<meta itemprop="priceCurrency"
content="{{ context.currency.translated.shortName }}"/>
{% endblock %}
{# Anfang geänderter Block #}
{% block buy_widget_price %}
{{ parent() }}
{% endblock %}
{# Ende geänderter Block #}
{# Anfang geänderter Block #}
{% block buy_widget_tax %}
{{ parent() }}
{% endblock %}
{# Ende geänderter Block #}
{# Anfang hinzugefügter Block #}
{# Block wird ins ProcOrderSimulate Plugin verschoben #}
{# {% block buy_widget_delivery_costs %}#}
{# {% set freeShippingThreshold = context.shippingMethod.extensions.deliveryInformations['freeShippingThreshold'] %}#}
{# <div class="product-detail-delivery-costs-container">#}
{# <p class="product-detail-delivery-costs">#}
{# {% block buy_widget_delivery_costs_link %}#}
{# <a class="product-detail-delivery-costs-link"#}
{# href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"#}
{# title="{{ "proc.detail.deliveryCosts"|trans({'%freeShipping%': freeShippingThreshold})|sw_sanitize }}"#}
{# {{ dataBsToggleAttr }}="modal"#}
{# data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">#}
{# {{ "proc.detail.deliveryCosts"|trans({'%freeShipping%': freeShippingThreshold})|sw_sanitize }}#}
{# </a>#}
{# {% endblock %}#}
{# </p>#}
{# </div>#}
{# {% endblock %}#}
{# Ende hinzugefügter Block #}
{% set remoteClickOptions = {
selector: "#review-tab-" ~ product.id,
scrollToElement: true
} %}
{% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
{% block buy_widget_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 {{ 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 %}