vendor/shopware/storefront/Resources/views/storefront/page/product-detail/configurator/select.html.twig line 1

Open in your IDE?
  1. {% block page_product_detail_configurator_group_select %}
  2.     {% block page_product_detail_configurator_group_select_title %}
  3.         <label class="product-detail-configurator-group-title" for="{{ group.id }}">
  4.             {% block page_product_detail_configurator_group_title_text %}
  5.                 {{ group.translated.name }}
  6.             {% endblock %}
  7.         </label>
  8.         {% block page_product_detail_configurator_select %}
  9.             <select name="{{ group.id }}" id="{{ group.id }}" class="{{ formSelectClass }} product-detail-configurator-select-input">
  10.                 {% for option in group.options %}
  11.                     {% set selected = false %}
  12.                     {% if option.id in page.product.optionIds %}
  13.                         {% set selected = true %}
  14.                     {% endif %}
  15.                     {% block page_product_detail_configurator_select_option %}
  16.                         <option value="{{ option.id }}"{% if selected %} selected="selected"{% endif %}>
  17.                             {{ option.translated.name }}
  18.                         </option>
  19.                     {% endblock %}
  20.                 {% endfor %}
  21.             </select>
  22.         {% endblock %}
  23.     {% endblock %}
  24. {% endblock %}