custom/static-plugins/EfbStorefront/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_select %}
  3.     <div class="form-row">
  4.     <div class="col-md-4">
  5.     <select name="{{ group.id }}" id="{{ group.id }}" class="custom-select product-detail-configurator-select-input">
  6.         {% for option in group.options %}
  7.             {% set selected = false %}
  8.             {% if option.id in page.product.optionIds %}
  9.                 {% set selected = true %}
  10.             {% endif %}
  11.             {% block page_product_detail_configurator_select_option %}
  12.                 <option value="{{ option.id }}"{% if selected %} selected="selected"{% endif %}>
  13.                     {{ option.translated.name }}
  14.                 </option>
  15.             {% endblock %}
  16.         {% endfor %}
  17.     </select></div></div>
  18. {% endblock %}