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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/block/cms-block-gallery-buybox.html.twig' %}
  2. {% block block_gallery_buybox_column_left %}
  3.     {% set element = block.slots.getSlot('left') %}
  4.     {% set config = element.fieldConfig.elements %}
  5.     <div class="col-lg-8 product-detail-media {% if page.product.customFields['custom_is_gluesystem'] == "true" %} glue-detail-media {% endif %}pr-lg-5" data-cms-element-id="{{ element.id }}">
  6.         {% block block_gallery_buybox_column_left_inner %}
  7.             {{ parent() }}
  8.         {% endblock %}
  9.         {% set isItCustomProducts = page.product.extensions.swagCustomizedProductsTemplate %}
  10.         {% set pageType = page.cmsPage.type %}
  11.         {% if page.product.customFields['custom_configurator_gluesystem_text1'] %}
  12.             <p class="gluesystem-text1">
  13.                 {{ page.product.customFields.custom_configurator_gluesystem_text1|raw }}
  14.             </p>
  15.         {% endif %}
  16.         {% if page.product.customFields['custom_configurator_gluesystem_text1'] %}
  17.             <p class="gluesystem-text2">
  18.                 {{ page.product.customFields.custom_configurator_gluesystem_text2|raw }}
  19.             </p>
  20.         {% endif %}
  21. {#        {% if  %}#}
  22. {#        {% endif %}#}
  23.     </div>
  24. {% endblock %}
  25. {% block block_gallery_buybox_column_right %}
  26.     {% set element = block.slots.getSlot('right') %}
  27.     <div class="col-lg-4 product-detail-buy {% if page.product.customFields['custom_is_gluesystem'] == "true" %} glue-detail-buy {% endif %} pl-lg-5" data-cms-element-id="{{ element.id }}">
  28.         {% block block_gallery_buybox_column_right_inner %}
  29.             {{ parent() }}
  30.         {% endblock %}
  31.     </div>
  32.     <span class="{% if page.product.customFields['custom_is_gluesystem'] == "true" %} glue-bottom-border {% endif%}"></span>
  33.     {% set product = page.product %}
  34.     {% if product.active %}
  35.         {% if product.customFields['custom_is_gluesystem'] == "true" %}
  36.             <div class="chosen-variant">
  37.                 <span class="chosen-variant-title">{{ "ATNTheme.detail.variant.title"|trans|sw_sanitize }}</span>
  38.                 <span class="chosen-variant-text">
  39.                     <br>
  40.                     {% for variant in page.product.variation %}
  41.                         {% if loop.last %}
  42.                             {{ variant.option }}
  43.                         {% else %}
  44.                             {{ variant.option }},
  45.                         {% endif %}
  46.                     {% endfor %}
  47.                 </span>
  48.             </div>
  49.             <div class="glue-detail-collector glue-detail-container">
  50.                 <div class="product-detail-form-container">
  51.                     {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
  52.                 </div>
  53.                 {% block buy_widget_ordernumber_container_glue %}
  54.                     {% if product.productNumber %}
  55.                         <div class="product-detail-ordernumber-container">
  56.                             {% block buy_widget_ordernumber_label %}
  57.                                 <span class="product-detail-ordernumber-label">
  58.                                         {{ "detail.productNumberLabel"|trans|sw_sanitize }}
  59.                                     </span>
  60.                             {% endblock %}
  61.                             {% block buy_widget_ordernumber %}
  62.                                 <meta itemprop="productID"
  63.                                       content="{{ product.id }}"/>
  64.                                 <span class="product-detail-ordernumber"
  65.                                       itemprop="sku">
  66.                                         {{ product.productNumber }}
  67.                                     </span>
  68.                             {% endblock %}
  69.                         </div>
  70.                     {% endif %}
  71.                 {% endblock %}
  72.             </div>
  73.         {% else %}
  74. {#            {% block buy_widget_ordernumber_container %}{% endblock %}#}
  75.         {% endif %}
  76.     {% endif %}
  77. {% endblock %}