{% sw_extends '@Storefront/storefront/page/checkout/_pageforcart.html.twig' %}
{% block base_head %}
{% sw_include '@Storefront/storefront/page/checkout/cart/meta.html.twig' %}
{% endblock %}
{% block page_checkout_container %}
{% if page.cart.lineItems.count is same as(0) %}
{% sw_include '@Storefront/storefront/utilities/alert-friendly.html.twig' with {
type: "info",
heading: "emova.priceOfferOutdatedHeading"|trans|sw_sanitize,
content: "emova.priceOfferOutdatedText"|trans|sw_sanitize,
target: { link: "/", message: "emova.priceOfferOutdatedButton"|trans|sw_sanitize }
} %}
{% set messages = app.flashes %}
{% if messages.danger|length > 0 %}
<div class="flashbags">
{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: 'danger', list: messages.danger } %}
</div>
{% endif %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block page_checkout_main_header %}
{% block page_checkout_cart_header %}
{% sw_include '@Storefront/storefront/component/checkout/step-by-step-bar.html.twig' with {'step': 2} %}
{% endblock %}
{% endblock %}
{% block page_checkout_main_content %}
{% block page_checkout_cart %}
{% set upsellLineItem = null %}
{% set mainLineItem = null %}
{% for lineItem in page.cart.lineItems %}
{% set cs = lineItem.payload.customFields %}
{% if cs %}
{% set upsell = cs["ev_produktdaten_upsell"] %}
{% if upsell == true %}
{% set upsellLineItem = lineItem %}
{% else %}
{% set mainLineItem = lineItem %}
{% endif %}
{% endif %}
{% endfor %}
{% block page_checkout_cart_product_table %}
{% block page_checkout_cart_table_items %}
{% for lineItem in page.cart.lineItems %}
{% if loop.first %}
{% sw_include '@Storefront/storefront/page/checkout/cart/index-inner.html.twig' %}
{% endif %}
{% endfor %}
{% endblock %}
{% endblock %}
{% block page_checkout_cart_hidden_line_items_information %}
{% sw_include '@Storefront/storefront/component/checkout/hidden-line-items-information.html.twig' with {
cart: page.cart,
lineItems: page.cart.lineItems
} %}
{% endblock %}
{% block page_checkout_cart_add_product_and_shipping %}
{% endblock %}
{% endblock %}
<style>
.error-message{
color: var(--red);
padding: 0 26px;
display: flex;
}
</style>
{% endblock %}
{% block page_checkout_aside_actions %}
{% endblock %}