{% sw_extends '@Storefront/storefront/page/product-detail/configurator/select.html.twig' %}
{% block page_product_detail_configurator_select_option %}
{% set showParent = true %}
{% set grayOption = false %}
{% if option.id in page.unavailable %}
{% if page.hideselection %}
{# output nothing, option is not issued #}
{% set showParent = false %}
{% else %}
{% set grayOption = true %}
{% endif %}
{% endif %}
{% if showParent %}
<option value="{{ option.id }}"
{% if selected %} selected="selected"{% endif %}
{% if grayOption %} disabled="disabled"{% endif %}>
{{ option.translated.name }}
</option>
{% endif %}
{% endblock %}