custom/plugins/WynTheme/src/Resources/views/storefront/component/buy-widget/configurator.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
  2. {% block buy_widget_configurator_options %}
  3.   <div class="product-detail-configurator-options">
  4.     <wyn-select
  5.       class="product-detail-configurator-select-input"
  6.       adjust-to-biggest-option
  7.       aria-label="{{ group.translated.name }}"
  8.       name="{{ group.id }}"
  9.     >
  10.       {% for option in group.options %}
  11.         {% if elementId is defined and elementId is not null %}
  12.           {% set optionIdentifier = [group.id, option.id, elementId]|join('-') %}
  13.         {% else %}
  14.           {% set optionIdentifier = [group.id, option.id]|join('-') %}
  15.         {% endif %}
  16.         {% set isActive = false %}
  17.         {% if option.id in product.optionIds %}
  18.           {% set isActive = true %}
  19.         {% endif %}
  20.         {% block buy_widget_configurator_option %}
  21.           <wyn-option
  22.             id="{{ optionIdentifier }}"
  23.             value="{{ option.id }}"
  24.             {% if isActive %}selected="selected"{% endif %}
  25.             {% if not option.combinable %}disabled{% endif %}
  26.           >
  27.             {{ option.translated.name }}
  28.             {% block buy_widget_configurator_option_radio %}
  29.             {% endblock %}
  30.           </wyn-option>
  31.         {% endblock %}
  32.       {% endfor %}
  33.     </wyn-select>
  34.   </div>
  35. {% endblock %}