custom/plugins/ZweiPunktVariantenAusgrauen/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. {% block page_product_detail_configurator_option %}
  3.     {% set showParent = true %}
  4.     {% set addCustomClass = '' %}
  5.     {% if option.id in page.unavailable %}
  6.         {% if page.hideselection %}
  7.             {# output nothing, field is hidden#}
  8.             {% set showParent = false %}
  9.         {% else %}
  10.             {% set isCombinableCls = false %}
  11.         {% endif %}
  12.     {% endif %}
  13.     {% if showParent %}
  14.         {% if page.product.availableStock < 1 %}
  15.             {% for optionId in page.product.optionIds %}
  16.                 {% if optionId == option.id %}
  17.                     {% set addCustomClass = 'current-out-of-stock' %}
  18.                 {% endif %}
  19.             {% endfor %}
  20.         {% endif %}
  21.         <div class="product-detail-configurator-option {{ addCustomClass }}">
  22.             {% block page_product_detail_configurator_option_radio %}
  23.                 {{ parent() }}
  24.             {% endblock %}
  25.         </div>
  26.     {% endif %}
  27. {% endblock %}