custom/static-plugins/NdVoorwindenTheme/src/Resources/views/storefront/component/buy-widget/configurator.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
  2. {% block buy_widget_configurator %}
  3.     <div class="product-detail-configurator"
  4.          data-product-variations="true">
  5.         {% block buy_widget_configurator_form %}
  6.             <form>
  7.                 {% block buy_widget_configurator_csrf %}
  8.                     {% if elementId is defined and elementId is not null %}
  9.                         {{ sw_csrf('frontend.cms.buybox.switch') }}
  10.                     {% else %}
  11.                         {{ sw_csrf('frontend.detail.switch') }}
  12.                     {% endif %}
  13.                 {% endblock %}
  14.                 {% block buy_widget_configurator_groups %}
  15.                     {% block buy_widget_configurator_group %}
  16.                         <div class="product-detail-configurator-group">
  17.                             {% sw_include '@Storefront/storefront/page/product-detail/configurator/select.html.twig' with{
  18.                                 'type': 'radio',
  19.                                 'label': true,
  20.                                 'sizeGuide': true,
  21.                                 'product': page.product
  22.                             } %}
  23.                         </div>
  24.                     {% endblock %}
  25.                 {% endblock %}
  26.             </form>
  27.         {% endblock %}
  28.     </div>
  29. {% endblock %}
  30. {% block buy_widget_configurator_option_radio_label %}
  31.     <label class="product-detail-configurator-option-label block px-4 py-2 transition rounded-sm bg-grey-50 font-accent font-bold text-base border border-transparent text-grey-900 cursor-pointer hover:border-grey-600 peer-checked:border-grey-900{% if isCombinableCls %} {{ isCombinableCls }}{% endif %} is-display-{{ displayType }}"
  32.             {% if displayType == 'color' and option.colorHexCode %}
  33.                 style="background-color: {{ option.colorHexCode }}"
  34.             {% endif %}
  35.            title="{{ option.translated.name }}"
  36.            for="{{ optionIdentifier }}">
  37.         {% if displayType == 'media' and media %}
  38.             {% block buy_widget_configurator_option_radio_label_media %}
  39.                 {% sw_thumbnails 'configurator-option-img-thumbnails' with {
  40.                     media: media,
  41.                     sizes: {
  42.                         'default': '52px'
  43.                     },
  44.                     attributes: {
  45.                         'class': 'product-detail-configurator-option-image',
  46.                         'alt': option.translated.name,
  47.                         'title': option.translated.name
  48.                     }
  49.                 } %}
  50.             {% endblock %}
  51.         {% elseif displayType == 'text' or
  52.             (displayType == 'media' and not media) or
  53.             (displayType == 'color' and not option.colorHexCode) %}
  54.             {% block buy_widget_configurator_option_radio_label_text %}
  55.                 {{ option.translated.name }}
  56.             {% endblock %}
  57.         {% endif %}
  58.     </label>
  59. {% endblock %}