{% sw_extends '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
{# Einbinden der Anzeige "Varianten ab %cheapest.price% #}
{% block page_product_detail_configurator %}
<div class="product-detail-configurator">
{% set config = {
url: url('frontend.detail.switch', { productId: page.product.parentId })
} %}
{% if page.product.calculatedCheapestPrice.unitPrice and page.product.calculatedCheapestPrice.unitPrice != 0 %}
{% set cheapestPrice = page.product.calculatedCheapestPrice.unitPrice %}
{% endif %}
{% set varId = false %}
{% if page.product.cheapestPrice.variantId is not empty %}
{% set varId = page.product.cheapestPrice.variantId %}
{% endif %}
<div class="detail-cheapest-variation-price">
<a href="{{ seoUrl('frontend.detail.page', {'productId': varId}) }}">{{ 'listing.cheapestPriceLabel'|trans|sw_sanitize }}
{{ cheapestPrice|currency }}{{ "general.star"|trans|sw_sanitize }}</a>
</div>
{% block page_product_detail_configurator_form %}
{{ parent() }}
{% endblock %}
</div>
{% endblock %}