vendor/store.shopware.com/dreiscset/src/Resources/views/storefront/component/buy-widget/buy-widget.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
  2. {#
  3. OVERVIEW OF THE ENTRY POINTS
  4. ============================
  5. A) Standard prouct layout
  6.         Set shopping cart >> @DreiscSet/src/Resources/views/storefront/page/product-detail/buy-widget.html.twig
  7.         Dreisc Registry and group listing >> @DreiscSet/src/Resources/views/storefront/page/product-detail/index.html.twig
  8.         "Buy this product in a set" and buy button >> @DreiscSet/src/Resources/views/storefront/page/product-detail/buy-widget-form.html.twig
  9.         Initial price before set cart update >> @DreiscSet/src/Resources/views/storefront/page/product-detail/buy-widget-price.html.twig
  10.         Controlling the detail tabs >> @DreiscSet/src/Resources/views/storefront/page/product-detail/tabs.html.twig and
  11.                                        @DreiscSet/src/Resources/views/storefront/page/product-detail/index.html.twig
  12. B) Experience world product layout
  13.         Set shopping cart >> @this
  14.         Dreisc Registry and group listing >> @DreiscSet/src/Resources/views/storefront/block/cms-block-gallery-buybox.html.twig
  15.         "Buy this product in a set" and buy button >> @DreiscSet/src/Resources/views/storefront/component/buy-widget/buy-widget-form.html.twig
  16.         Initial price before set cart update >> @DreiscSet/src/Resources/views/storefront/component/buy-widget/buy-widget-price.html.twig
  17.         Controlling the detail tabs >> @DreiscSet/src/Resources/views/storefront/element/cms-element-product-description-reviews.html.twig
  18. #}
  19. {% block buy_widget_data %}
  20.     {% if page.product.extensions.dreiscSetOrderCartStruct %}
  21.         {% set dreiscSetCartOptions = {
  22.             dataUrl: url('frontend.widgets.dreisc.set.reload.set.cart'),
  23.             csrfToken: sw_csrf('frontend.widgets.dreisc.set.reload.set.cart', {'mode': 'token'})
  24.         } %}
  25.         {# At this point we issue the cart of the set. This is updated after each selection via javascript. #}
  26.         {% block dreisc_set__cart %}
  27.         <div class="dreisc-set-cart" data-dreisc-set-cart="true"
  28.              data-dreisc-set-cart-options="{{ dreiscSetCartOptions|json_encode }}">
  29.             {% sw_include '@DreiscSet/storefront/dreisc-set/configurator/set-cart.html.twig' with {
  30.                 dreiscSetOrder: page.product.extensions.dreiscSetOrderCartStruct,
  31.                 dreiscSetConfiguration: page.product.extensions.dreiscSetStruct.setConfigurationStruct
  32.             } %}
  33.         </div>
  34.         {% endblock %}
  35.     {% endif %}
  36.     {{ parent() }}
  37. {% endblock %}
  38. {% block buy_widget_price %}
  39.     {% if page.product.extensions.dreiscSetOrderCartStruct %}
  40.         {% block dreisc_set__sticky_container__start %}
  41.         <div class="sticky-container">
  42.             <div class="sticky-left-container">
  43.         {% endblock %}
  44.             {{ parent() }}
  45.     {% else %}
  46.         {{ parent() }}
  47.     {% endif %}
  48. {% endblock %}
  49. {% block buy_widget_tax %}
  50.     {% if page.product.extensions.dreiscSetOrderCartStruct %}
  51.                 {{ parent() }}
  52.         {% block dreisc_set__sticky_container__middle %}
  53.                 {# Close .sticky-left-container #}
  54.             </div>
  55.         <div class="sticky-right-container">
  56.         {% endblock %}
  57.     {% else %}
  58.         {{ parent() }}
  59.     {% endif %}
  60. {% endblock %}
  61. {% block buy_widget_buy_form %}
  62.     {% if page.product.extensions.dreiscSetOrderCartStruct %}
  63.                 {{ parent() }}
  64.                 {# Close .sticky-right-container #}
  65.         {% block dreisc_set__sticky_container__end %}
  66.             </div>
  67.         </div>
  68.         {% endblock %}
  69.     {% else %}
  70.         {{ parent() }}
  71.     {% endif %}
  72. {% endblock %}
  73. {% block buy_widget_reviews %}
  74.     {% if not page.product.extensions.dreiscSetStruct.setConfigurationStruct.mainProductHideReviewTab %}
  75.         {{ parent() }}
  76.     {% endif %}
  77. {% endblock %}