templates/web/customer/product/attribute_value/select/selectbox.twig line 1

Open in your IDE?
  1. {##
  2.  # Attribute value (Select) in selectbox mode
  3.  #}
  4. {% set fieldId = this.getId() %}
  5. <label class="title" for="{{ fieldId }}">{{ this.getAttributeName() }}</label>
  6. <select
  7.     class="form-control"
  8.     name="{{ this.getName() }}"
  9.     id="{{ fieldId }}"
  10.     data-attribute-id="{{ this.attribute.id }}"
  11.     {{ this.printTagAttributes(this.getSelectAttributes())|raw }}
  12. >
  13.   {% if this.showPlaceholderOption() %}
  14.     <option {{ this.printTagAttributes(this.getPlaceholderOptionAttributes())|raw }}disabled="disabled" hidden="hidden" selected="selected" value="">{{ this.getPlaceholderOptionLabel() }}</option>
  15.   {% endif %}
  16.   {% include this.getOptionsListTemplate() %}
  17. </select>