{% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
{% block base_main_inner %}
<div class="cart-main-header">
<div class="container">
{% sw_icon "cart" style {'pack':'bodymed'} %}
<h1>
{{ "checkout.cartHeader"|trans|sw_sanitize }}
</h1>
<div class="cart-main-header-count">
{{ "checkout.itemCartPageCounter"|trans({'%count%': page.cart.lineItems|length})|sw_sanitize }}
</div>
</div>
</div>
{{ parent() }}
{% endblock %}
{% block page_checkout_cart_header %}
{% endblock %}
{% block page_checkout_cart_add_promotion_submit %}
<div class="input-group-append">
<button class="btn btn-secondary"
type="submit"
id="addPromotion">
{% sw_icon 'checkmark' style {'pack':'bodymed'} %}
</button>
</div>
{% endblock %}
{% block page_checkout_cart_table_items %}
{% for lineItem in page.cart.lineItems %}
{% block page_checkout_cart_table_item %}
{% block page_checkout_item %}
{% if lineItem.type != 'promotion' %}
{% sw_include '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
{% endif %}
{% endblock %}
{% endblock %}
{% endfor %}
{% for lineItem in page.cart.lineItems %}
{% if lineItem.type == 'promotion' %}
{% sw_include '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
{% endif %}
{% endfor %}
{% endblock %}
{# @todo einblenden falls der Gutschein wieder ausgebelendet werden soll
{% block page_checkout_cart_add_promotion %}
<div class="promotion--info">
{{ "checkout.promotionInfo"|trans|sw_sanitize }}
</div>
{% endblock %} #}
{# @todo ausblenden falls der Gutschein wieder ausgeblendet werden soll #}
{% block page_checkout_cart_add_promotion_input %}
{{ parent() }}
<div class="promotionTooltip">
{{ "checkout.promotionInfo"|trans|sw_sanitize }}
</div>
{% endblock %}