{% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
{% block page_checkout_cart_header %}
<h1 class="cart-main-header">
{{ "checkout.cartHeader"|trans|sw_sanitize }}
</h1>
{% set EnnoEmptyCartSW6 = config('EnnoEmptyCartSW6') %}
{% if EnnoEmptyCartSW6 and EnnoEmptyCartSW6.config.active and EnnoEmptyCartSW6.config.activemaincart %}
<a class="enno-empty-cart" href="{{ path('frontend.checkout.emptyCart') }}">
{% sw_icon 'bin' style {'namespace': 'EfbStorefront'} %}
</a>
{% endif %}
{% endblock %}
{% block page_checkout_aside_actions %}
<div class="checkout-aside-action">
<div class="accordions">
<div class="accordion">
<input type="checkbox" id="accordion-trigger">
<label class="accordion-label" for="accordion-trigger">{{ "checkout.addPromotionAccordionLabel"|trans|sw_sanitize }}
{% sw_icon 'chevron-right-s' style { 'namespace': 'EfbStorefront' } %}</label>
<div class="accordion-content">
{% block page_checkout_cart_add_promotion %}
{{ parent() }}
{% endblock %}
</div>
</div>
</div>
</div>
{% block page_checkout_cart_action_proceed %}
{% if page.AgiqonOci %}
{% if page.AgiqonOciSystem == 'oci' %}
{% sw_include '@Storefront/storefront/plugin/oci-form.html.twig' %}
{% elseif page.AgiqonOciSystem == 'cxml' %}
{% sw_include '@Storefront/storefront/plugin/oci-cxml.html.twig' %}
{% else %}
{% sw_include '@Storefront/storefront/plugin/oci-form.html.twig' %}
{% endif %}
{% else %}
<div class="checkout-aside-action">
<a href="{{ path('frontend.checkout.confirm.page') }}"
class="btn btn-primary btn-block btn-lg begin-checkout-btn"
title="{{ "checkout.proceedLink"|trans|striptags }}">
{{ "checkout.proceedLink"|trans|sw_sanitize }}
</a>
{# <form#}
{# action="{{ path('frontend.b2b.b2bcreateofferthroughcart.createOffer') }}"#}
{# method="post"#}
{# data-form-csrf-handler="true"#}
{# data-form-preserver="true"#}
{# data-csrf-token="{{ sw_csrf('frontend.b2b.b2bcreateofferthroughcart.createOffer', { mode: 'token' }) }}"#}
{# >#}
{# {{ sw_csrf('frontend.b2b.b2bcreateofferthroughcart.createOffer') }}#}
{# <button#}
{# type="submit"#}
{# class="btn btn-request-offer"#}
{# >#}
{# {{ "b2b.RequestAnOffer"|trans|sw_sanitize }}#}
{# </button>#}
{# </form>#}
</div>
{% endif %}
{% endblock %}
{% endblock %}
{% block page_checkout_cart_add_promotion_submit %}
<div class="input-group-append">
<button class="btn btn-primary"
type="submit"
id="addPromotion">
{{ "checkout.addPromotionOffcanvasCart"|trans|sw_sanitize }}
</button>
</div>
{% endblock %}
{% block page_checkout_cart_add_product %}{% endblock %}
{% block page_checkout_container %}
{{ parent() }}
<div class="quick-order-contaier">
{% block page_checkout_cart_add_product_moved %}
<div class="cart-add-product-container">
<h3> {{ "checkout.quickOrder"|trans|sw_sanitize }}</h3>
<form action="{{ path('frontend.checkout.product.add-by-number') }}"
data-form-csrf-handler="true"
class="cart-add-product"
method="post">
{% block page_checkout_cart_add_product_csrf %}
{{ parent() }}
{% endblock %}
{% block page_checkout_cart_add_product_redirect %}
{{ parent() }}
{% endblock %}
{% block page_checkout_cart_add_product_input_group %}
<div class="input-group-row">
{% block page_checkout_cart_add_product_label %}
{{ parent() }}
{% endblock %}
{% block page_checkout_cart_add_product_input %}
{{ parent() }}
{% endblock %}
{% block page_checkout_cart_add_product_submit %}
<button class="btn btn-primary"
type="submit"
id="addProductButton">
{{ "checkout.addProductToCart"|trans|sw_sanitize }}
</button>
{% endblock %}
</div>
{% endblock %}
</form>
</div>
{% endblock %}
{% if b2bSuite %}
<div
class="col-md-12 b2b--ajax-panel"
data-id="fast-order-upload"
data-url="{{ path('frontend.b2b.b2bfastorder.upload') }}"
data-plugins="ajaxPanelUpload,accordion"
></div>
{% else %}
{% sw_include "@Storefront/storefront/component/checkout/csv-upload.html.twig" %}
{% endif %}
</div>
{% if page.cart.extensions.crossSelling %}
<div class="checkout-cross-selling">
{% set crossSellings = page.cart.extensions.crossSelling %}
{% for item in crossSellings|filter(item => item.crossSelling.active and item.getProducts().elements) %}
<div class="cross-selling">
{% set config = {
'title': {
'value': item.crossSelling.name
},
'border': {
'value': false
},
'rotate': {
'value': false
},
'products': {
'value': item.getProducts()
},
'boxLayout': {
'value': 'minimal'
},
'elMinWidth': {
'value': '300px'
},
'navigation': {
'value': true
},
'displayMode': {
'value': 'minimal'
},
'verticalAlign': {
'value': 'top'
},
} %}
{% sw_include "@Storefront/storefront/element/cms-element-product-slider.html.twig" with {
sliderConfig: config,
element: {
'data': {
'products': {
elements: item.getProducts()
}
},
type: 'product-slider'
}
} %}
</div>
{% endfor %}
</div>
{% endif %}
{% endblock %}
{% block page_checkout_cart_shipping_costs %}{% endblock %}