{% sw_extends '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
{% block page_product_detail_configurator_groups %}
<div class="product-detail-configurator-header">
<h2>Auswahl ändern</h2>
</div>
{{ parent() }}
{% if page.extensions.maxiaVariantsTable.searchResult.total %}
<div class="product-detail-configurator-footer">
<a class="icon-link" href="#" data-scroll-to=".product-variant-table-container">
{% sw_icon 'list' style {'pack' : 'atmos'} %}
<span class="icon-link">
{{ "AtmosTheme.product.showAllVariants"|trans|striptags }} ({{ page.extensions.maxiaVariantsTable.searchResult.total }})
</span>
</a>
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_configurator_form %}
{{ parent() }}
{% if page.configuratorSettings|length > 3 and page.crossSellings.elements %}
<div class="product-detail-configurator-overview">
<h2>Ihre Konfiguration</h2>
<span style="display: block; margin-bottom: 10px;">
{% for group in page.configuratorSettings %}
<span class="font-weight-bold">{{ group.translated.name }}:</span>
{% for option in group.options %}
{% if option.id in page.product.optionIds %}
{{ option.translated.name }},
{% endif %}
{% endfor %}
{% endfor %}
</span>
<div class="product-detail-configurator-link">
<a class="icon-link" href="#" data-scroll-to=".content-main">
{% sw_icon 'arrow-up' style {'pack' : 'atmos'} %}
<span class="icon-link">
{{ "AtmosTheme.product.changeConfiguration"|trans|striptags }}
</span>
</a>
</div>
{% if page.extensions.maxiaVariantsTable.searchResult.total %}
<a class="icon-link" href="#" data-scroll-to=".product-variant-table-container">
{% sw_icon 'list' style {'pack' : 'atmos'} %}
<span class="icon-link">
{{ "AtmosTheme.product.showAllVariants"|trans|striptags }} ({{ page.extensions.maxiaVariantsTable.searchResult.total }})
</span>
</a>
{% endif %}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_configurator_option_radio_label %}
<label class="product-detail-configurator-option-label{% if isCombinableCls %} {{ isCombinableCls }}{% endif %} is-display-{{ displayType }}"
{% if displayType == 'color' and option.colorHexCode %}
style="background-color: {{ option.colorHexCode }}"
{% endif %}
for="{{ optionIdentifier }}"
{% if isCombinableCls %}
title="{{ option.translated.name }}"
{% else %}
data-toggle="tooltip" title="{{ "AtmosTheme.product.noChoice"|trans|striptags }}"
{% endif %}
>
{% if displayType == 'media' and media %}
{% block page_product_detail_configurator_option_radio_label_media %}
{% sw_thumbnails 'configurator-option-img-thumbnails' with {
media: media,
sizes: {
'default': '52px'
},
attributes: {
'class': 'product-detail-configurator-option-image',
'alt': option.translated.name,
'title': option.translated.name
}
} %}
{% endblock %}
{% elseif displayType == 'text' or
(displayType == 'media' and not media) or
(displayType == 'color' and not option.colorHexCode) %}
{% block page_product_detail_configurator_option_radio_label_text %}
{{ option.translated.name }}
{% endblock %}
{% endif %}
</label>
{% endblock %}