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

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