custom/plugins/SwagCustomizedProducts/src/Resources/views/storefront/page/product-detail/buy-widget-form.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
  2. {% block page_product_detail_buy_container %}
  3.     {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form-customized-products.html.twig' %}
  4.     {{ parent() }}
  5. {% endblock %}
  6. {% block page_product_detail_buy_form_action %}
  7.     {% apply spaceless %}
  8.         {% if customizedProductsTemplate and customizedProductsTemplate.active and customizedProductsTemplate.options|length %}
  9.             {{ path('frontend.checkout.customized-products.add') }}
  10.         {% else %}
  11.             {{ parent() }}
  12.         {% endif %}
  13.     {% endapply %}
  14. {% endblock %}
  15. {% block page_product_detail_buy_form_inner_csrf %}
  16.     {% if customizedProductsTemplate and customizedProductsTemplate.active and customizedProductsTemplate.options|length %}
  17.         {{ sw_csrf('frontend.checkout.customized-products.add') }}
  18.     {% else %}
  19.         {{ parent() }}
  20.     {% endif %}
  21. {% endblock %}