custom/plugins/Tuerschild_2/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.         {% block page_product_detail_configurator_select %}
  5.             {% if loop.first %}
  6.                 <label class="product-detail-configurator-group-title" for="{{ group.id }}">
  7.                     {% block page_product_detail_configurator_group_title_text %}
  8.                         {{ "detail.variantTextConfigurator"|trans|sw_sanitize }}
  9.                     {% endblock %}
  10.                 </label>
  11.             {% endif %}
  12.             <select name="{{ group.id }}" id="{{ group.id }}" class="custom-select product-detail-configurator-select-input product-detail-configurator-option-input">
  13.                 {% for option in group.options %}
  14.                     {% set selected = false %}
  15.                     {% if option.id in page.product.optionIds %}
  16.                         {% set selected = true %}
  17.                     {% endif %}
  18.                     {% block page_product_detail_configurator_select_option %}
  19.                         <option value="{{ option.id }}"{% if selected %} selected="selected"{% endif %}>
  20.                             {{ option.translated.name }}
  21.                         </option>
  22.                     {% endblock %}
  23.                 {% endfor %}
  24.             </select>
  25.         {% endblock %}
  26.     {% endblock %}
  27. {% endblock %}