custom/plugins/KkTheme/src/Resources/views/storefront/page/product-detail/configurator.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
  2. {# Einbinden der Anzeige "Varianten ab %cheapest.price% #}
  3. {% block page_product_detail_configurator %}
  4.     <div class="product-detail-configurator">
  5.         {% set config = {
  6.             url: url('frontend.detail.switch', { productId: page.product.parentId })
  7.         } %}
  8.         {% if page.product.calculatedCheapestPrice.unitPrice and page.product.calculatedCheapestPrice.unitPrice != 0 %}
  9.             {% set cheapestPrice = page.product.calculatedCheapestPrice.unitPrice %}
  10.         {% endif %}
  11.         {% set varId = false %}
  12.         {% if page.product.cheapestPrice.variantId is not empty %}
  13.             {% set varId = page.product.cheapestPrice.variantId %}
  14.         {% endif %}
  15.         <div class="detail-cheapest-variation-price">
  16.         <a href="{{ seoUrl('frontend.detail.page', {'productId': varId}) }}">{{ 'listing.cheapestPriceLabel'|trans|sw_sanitize }} 
  17.             {{ cheapestPrice|currency }}{{ "general.star"|trans|sw_sanitize }}</a>
  18.         </div>
  19.         {% block page_product_detail_configurator_form %}
  20.             {{ parent() }}
  21.         {% endblock %}
  22.     </div>
  23. {% endblock %}