custom/plugins/Theme3S/src/Resources/views/storefront/block/cms-block-gallery-buybox.html.twig line 1

  1. {% sw_extends '@Storefront/storefront/block/cms-block-gallery-buybox.html.twig' %}
  2. {% block block_gallery_buybox %}
  3. {% block block_gallery_buybox_column_left %}
  4. {% set element = block.slots.getSlot('left') %}
  5. {% set config = element.fieldConfig.elements %}
  6. {% set values = block.slots.getSlot('right') %}
  7. {% block block_gallery_buybox_column_left_inner %}
  8. {% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing
  9. with {
  10. 'isProduct': config.sliderItems.value == 'product.media' and config.sliderItems.source == 'mapped',
  11. 'startIndexThumbnails': 1,
  12. 'startIndexSlider': 1
  13. } %}
  14. {% endblock %}
  • {% block cms_breadcrumb %}
  • {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  • context: context,
  • category: page.product.seoCategory
  • } only %}
  • {% set variation = values.data.product.variation %}
  • {% set sizeoption = variation[0].option %}
  • {% set coloroption = variation[1].option %}
  • {% set gloveoption = variation[2].option %}
  • {% set blank = "" %}
  • {% set size = " " ~ sizeoption %}
  • {% set newname = values.data.product.translated.name %}
  • {% if size != "" %}
  • {% set newname = newname|replace({(size): blank}) %}
  • {% endif %}
  • {% if coloroption != "" %}
  • {% set newname = newname|replace({(coloroption): blank}) %}
  • {% endif %}
  • {% if gloveoption != "" %}
  • {% set newname = newname|replace({(gloveoption): blank}) %}
  • {% endif %}
  • {{ newname }}
  • {#
  • {{ values.data.product.translated.name }}
  • #}
  • {% endblock %}
  • {% block block_gallery_buybox_column_right %}
  • {% set element = block.slots.getSlot('right') %}
  • {% block block_gallery_buybox_column_right_inner %}
  • {% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing %}
  • {% endblock %}
  • {% endblock %}
  • {% endblock %}
  • {% endblock %}