custom/static-plugins/EfbStorefront/Resources/views/storefront/page/checkout/cart/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
  2. {% block page_checkout_cart_header %}
  3.     <h1 class="cart-main-header">
  4.         {{ "checkout.cartHeader"|trans|sw_sanitize }}
  5.     </h1>
  6.     {% set EnnoEmptyCartSW6 = config('EnnoEmptyCartSW6') %}
  7.     {% if EnnoEmptyCartSW6 and EnnoEmptyCartSW6.config.active and EnnoEmptyCartSW6.config.activemaincart %}
  8.         <a class="enno-empty-cart" href="{{ path('frontend.checkout.emptyCart') }}">
  9.             {% sw_icon 'bin' style {'namespace': 'EfbStorefront'} %}
  10.         </a>
  11.     {% endif %}
  12. {% endblock %}
  13. {% block page_checkout_aside_actions %}
  14.     <div class="checkout-aside-action">
  15.         <div class="accordions">
  16.             <div class="accordion">
  17.                 <input type="checkbox" id="accordion-trigger">
  18.                 <label class="accordion-label" for="accordion-trigger">{{ "checkout.addPromotionAccordionLabel"|trans|sw_sanitize }}
  19.                     {% sw_icon 'chevron-right-s' style { 'namespace': 'EfbStorefront' } %}</label>
  20.                 <div class="accordion-content">
  21.                     {% block page_checkout_cart_add_promotion %}
  22.                         {{ parent() }}
  23.                     {% endblock %}
  24.                 </div>
  25.             </div>
  26.         </div>
  27.     </div>
  28.     {% block page_checkout_cart_action_proceed %}
  29.         {% if page.AgiqonOci %}
  30.             {% if page.AgiqonOciSystem == 'oci' %}
  31.                 {% sw_include '@Storefront/storefront/plugin/oci-form.html.twig' %}
  32.             {% elseif page.AgiqonOciSystem == 'cxml' %}
  33.                 {% sw_include '@Storefront/storefront/plugin/oci-cxml.html.twig' %}
  34.             {% else %}
  35.                 {% sw_include '@Storefront/storefront/plugin/oci-form.html.twig' %}
  36.             {% endif %}
  37.         {% else %}
  38.             <div class="checkout-aside-action">
  39.                 <a href="{{ path('frontend.checkout.confirm.page') }}"
  40.                    class="btn btn-primary btn-block btn-lg begin-checkout-btn"
  41.                    title="{{ "checkout.proceedLink"|trans|striptags }}">
  42.                     {{ "checkout.proceedLink"|trans|sw_sanitize }}
  43.                 </a>
  44.                 {#            <form#}
  45.                 {#                action="{{ path('frontend.b2b.b2bcreateofferthroughcart.createOffer') }}"#}
  46.                 {#                method="post"#}
  47.                 {#                data-form-csrf-handler="true"#}
  48.                 {#                data-form-preserver="true"#}
  49.                 {#                data-csrf-token="{{ sw_csrf('frontend.b2b.b2bcreateofferthroughcart.createOffer', { mode: 'token' }) }}"#}
  50.                 {#            >#}
  51.                 {#                {{ sw_csrf('frontend.b2b.b2bcreateofferthroughcart.createOffer') }}#}
  52.                 {#                <button#}
  53.                 {#                    type="submit"#}
  54.                 {#                    class="btn btn-request-offer"#}
  55.                 {#                >#}
  56.                 {#                    {{ "b2b.RequestAnOffer"|trans|sw_sanitize }}#}
  57.                 {#                </button>#}
  58.                 {#            </form>#}
  59.             </div>
  60.         {% endif %}
  61.     {% endblock %}
  62. {% endblock %}
  63. {% block page_checkout_cart_add_promotion_submit %}
  64.     <div class="input-group-append">
  65.         <button class="btn btn-primary"
  66.                 type="submit"
  67.                 id="addPromotion">
  68.             {{ "checkout.addPromotionOffcanvasCart"|trans|sw_sanitize }}
  69.         </button>
  70.     </div>
  71. {% endblock %}
  72. {% block page_checkout_cart_add_product %}{% endblock %}
  73. {% block page_checkout_container %}
  74.     {{ parent() }}
  75.     <div class="quick-order-contaier">
  76.         {% block page_checkout_cart_add_product_moved %}
  77.             <div class="cart-add-product-container">
  78.                 <h3> {{ "checkout.quickOrder"|trans|sw_sanitize }}</h3>
  79.                 <form action="{{ path('frontend.checkout.product.add-by-number') }}"
  80.                       data-form-csrf-handler="true"
  81.                       class="cart-add-product"
  82.                       method="post">
  83.                     {% block page_checkout_cart_add_product_csrf %}
  84.                         {{ parent() }}
  85.                     {% endblock %}
  86.                     {% block page_checkout_cart_add_product_redirect %}
  87.                         {{ parent() }}
  88.                     {% endblock %}
  89.                     {% block page_checkout_cart_add_product_input_group %}
  90.                         <div class="input-group-row">
  91.                             {% block page_checkout_cart_add_product_label %}
  92.                                 {{ parent() }}
  93.                             {% endblock %}
  94.                             {% block page_checkout_cart_add_product_input %}
  95.                                 {{ parent() }}
  96.                             {% endblock %}
  97.                             {% block page_checkout_cart_add_product_submit %}
  98.                                 <button class="btn btn-primary"
  99.                                         type="submit"
  100.                                         id="addProductButton">
  101.                                     {{ "checkout.addProductToCart"|trans|sw_sanitize }}
  102.                                 </button>
  103.                             {% endblock %}
  104.                         </div>
  105.                     {% endblock %}
  106.                 </form>
  107.             </div>
  108.         {% endblock %}
  109.         {% if b2bSuite %}
  110.             <div
  111.                 class="col-md-12 b2b--ajax-panel"
  112.                 data-id="fast-order-upload"
  113.                 data-url="{{ path('frontend.b2b.b2bfastorder.upload') }}"
  114.                 data-plugins="ajaxPanelUpload,accordion"
  115.             ></div>
  116.         {% else %}
  117.             {% sw_include "@Storefront/storefront/component/checkout/csv-upload.html.twig" %}
  118.         {% endif %}
  119.     </div>
  120.     {% if page.cart.extensions.crossSelling %}
  121.         <div class="checkout-cross-selling">
  122.             {% set crossSellings = page.cart.extensions.crossSelling %}
  123.             {% for item in crossSellings|filter(item => item.crossSelling.active and item.getProducts().elements) %}
  124.                 <div class="cross-selling">
  125.                     {% set config = {
  126.                         'title': {
  127.                             'value': item.crossSelling.name
  128.                         },
  129.                         'border': {
  130.                             'value': false
  131.                         },
  132.                         'rotate': {
  133.                             'value': false
  134.                         },
  135.                         'products': {
  136.                             'value': item.getProducts()
  137.                         },
  138.                         'boxLayout': {
  139.                             'value': 'minimal'
  140.                         },
  141.                         'elMinWidth': {
  142.                             'value': '300px'
  143.                         },
  144.                         'navigation': {
  145.                             'value': true
  146.                         },
  147.                         'displayMode': {
  148.                             'value': 'minimal'
  149.                         },
  150.                         'verticalAlign': {
  151.                             'value': 'top'
  152.                         },
  153.                     } %}
  154.                     {% sw_include "@Storefront/storefront/element/cms-element-product-slider.html.twig" with {
  155.                         sliderConfig: config,
  156.                         element: {
  157.                             'data': {
  158.                                 'products': {
  159.                                     elements: item.getProducts()
  160.                                 }
  161.                             },
  162.                             type: 'product-slider'
  163.                         }
  164.                     } %}
  165.                 </div>
  166.             {% endfor %}
  167.         </div>
  168.     {% endif %}
  169. {% endblock %}
  170. {% block page_checkout_cart_shipping_costs %}{% endblock %}