{% sw_extends '@Storefront/storefront/page/checkout/_page.html.twig' %} {% block page_checkout_container %} {% if page.cart.lineItems.count is same as(0) %} {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: 'info', content: 'checkout.cartEmpty'|trans|sw_sanitize } %} {% set messages = app.flashes %} {% if messages.danger|length > 0 %}
{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: 'danger', list: messages.danger } %}
{% endif %}
{% sw_include '@Storefront/storefront/component/checkout/add-product-by-number.html.twig' %}
{% else %} {{ parent() }} {% endif %} {% endblock %} {% block page_checkout_main_content %} {% block page_checkout_cart %} {% block page_checkout_cart_header %}

{{ 'checkout.cartHeader'|trans|sw_sanitize }}

({{- 'checkout.itemCounter'|trans({'%count%': page.cart.lineItems|length})|sw_sanitize -}}) {% endblock %} {% block page_checkout_cart_product_table %} {% set showTaxPrice = config('core.cart.columnTaxInsteadUnitPrice') %} {# @deprecated tag:v6.8.0 - Will listening to core.cart.columnTaxInsteadUnitPrice instead #} {% if not feature('v6.8.0.0') %} {% set showTaxPrice = false %} {% endif %} {% set showSubtotal = config('core.cart.showSubtotal') %}
{% 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 %}
{% if feature('v6.8.0.0') %} {% sw_include '@Storefront/storefront/component/checkout/add-product-by-number.html.twig' %} {% else %} {# @deprecated tag:v6.8.0 - Block page_checkout_cart_add_product will be moved to add-product-by-number.html.twig #} {% block page_checkout_cart_add_product %}
{# @deprecated tag:v6.8.0 - Block page_checkout_cart_add_product_redirect will be moved to add-product-by-number.html.twig #} {% block page_checkout_cart_add_product_redirect %} {% endblock %} {# @deprecated tag:v6.8.0 - Block page_checkout_cart_add_product_label will be moved to add-product-by-number.html.twig #} {% block page_checkout_cart_add_product_label %} {% endblock %} {# @deprecated tag:v6.8.0 - Block page_checkout_cart_add_product_input_group will be moved to add-product-by-number.html.twig #} {% block page_checkout_cart_add_product_input_group %}
{# @deprecated tag:v6.8.0 - Block page_checkout_cart_add_product_input will be moved to add-product-by-number.html.twig #} {% block page_checkout_cart_add_product_input %} {% endblock %} {# @deprecated tag:v6.8.0 - Block page_checkout_cart_add_product_submit will be moved to add-product-by-number.html.twig #} {% block page_checkout_cart_add_product_submit %} {% endblock %}
{% endblock %}
{% endblock %} {% endif %} {% block page_checkout_cart_shipping_costs %}
{% block page_checkout_cart_shipping_costs_trigger %} {% set PHYSICAL_STATE = constant('Shopware\\Core\\Content\\Product\\State::IS_PHYSICAL') %} {% if page.cart.lineItems.hasLineItemWithState(PHYSICAL_STATE) %} {% endif %} {% endblock %} {% block page_checkout_cart_shipping_costs_form_group %}
{% block page_checkout_cart_shipping_costs_form_group_country %} {% if not context.customer %}
{% endif %} {% endblock %} {% block page_checkout_cart_shipping_costs_form_group_payment_method %}
{% endblock %} {% block page_checkout_cart_shipping_costs_form_group_shipping_method %}
{% endblock %}
{% endblock %}
{% endblock %}
{% endblock %} {% endblock %} {% endblock %} {% block page_checkout_aside_actions %}
{% block page_checkout_cart_add_promotion %}
{% block page_checkout_cart_add_promotion_forward %} {% endblock %} {% block page_checkout_cart_add_promotion_label %} {% endblock %} {% block page_checkout_cart_add_promotion_input_group %}
{% block page_checkout_cart_add_promotion_input %} {% endblock %} {% block page_checkout_cart_add_promotion_submit %} {% endblock %}
{% endblock %}
{% endblock %}
{% block page_checkout_cart_action_proceed %}
{{ 'checkout.proceedLink'|trans|sw_sanitize }}
{% endblock %} {% endblock %}