{% block page_checkout_confirm_address_inner %} {# @var page \Shopware\Storefront\Page\Checkout\Confirm\CheckoutConfirmPage #} {% if page.order %} {% set order = page.order %} {% set billingAddress = order.billingAddress %} {# @deprecated tag:v6.8.0 - deliveries will be removed, use primaryOrderDelivery instead #} {% set deliveries = order.deliveries.elements %} {% if feature('v6.8.0.0') %} {% if order.billingAddress.id != order.primaryOrderDelivery.shippingOrderAddressId %} {% set shippingAddress = order.primaryOrderDelivery.shippingOrderAddress %} {% else %} {% set shippingAddress = billingAddress %} {% endif %} {% else %} {% if deliveries|length > 0 and order.billingAddress.id != deliveries|first.shippingOrderAddressId %} {% set shippingAddress = deliveries|first.shippingOrderAddress %} {% else %} {% set shippingAddress = billingAddress %} {% endif %} {% endif %} {% else %} {% set billingAddress = context.customer.activeBillingAddress %} {% set shippingAddress = context.customer.activeShippingAddress %} {% endif %} {% block page_checkout_confirm_address %}
{% block page_checkout_confirm_address_shipping %} {% if page.cart is defined %} {% set lineItems = page.cart.lineItems %} {% endif %} {% if page.order is defined %} {% set lineItems = page.order.lineItems %} {% endif %} {% if not page.isHideShippingAddress() %}
{% block page_checkout_confirm_address_shipping_title %}
{{ 'checkout.shippingAddressHeader'|trans|sw_sanitize }}
{% endblock %} {% block page_checkout_confirm_address_shipping_data %}
{% sw_include '@Storefront/storefront/component/address/address.html.twig' with { address: shippingAddress } %}
{% endblock %} {% block page_checkout_confirm_address_shipping_actions %} {% set addressManagerOptions = { initialTab: 'shipping', activeShippingAddressId: shippingAddress.id, addressManagerUrl: path('frontend.account.addressmanager.get'), addressSwitchUrl: path('frontend.account.address.switch-default'), } %}
{% block page_checkout_confirm_address_shipping_actions_link %} {{ 'account.overviewChangeShipping'|trans|sw_sanitize }} {% endblock %}
{% endblock %}
{% endif %} {% endblock %} {% block page_checkout_confirm_address_billing %}
{% block page_checkout_confirm_address_billing_title %}
{{ 'checkout.billingAddressHeader'|trans|sw_sanitize }}
{% endblock %} {% block page_checkout_confirm_address_billing_data %}
{% if billingAddress.id is same as(shippingAddress.id) and not page.isHideShippingAddress()%} {% block page_checkout_confirm_address_billing_data_equal %}

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

{% endblock %} {% else %} {% sw_include '@Storefront/storefront/component/address/address.html.twig' with { address: billingAddress } %} {% endif %}
{% endblock %} {% block page_checkout_confirm_address_billing_actions %}
{% set addressManagerOptions = { initialTab: 'billing', addressId: billingAddress.id, addressManagerUrl: path('frontend.account.addressmanager.get'), addressSwitchUrl: path('frontend.account.address.switch-default'), } %} {% block page_checkout_confirm_address_billing_actions_link %} {{ 'account.overviewChangeBilling'|trans|sw_sanitize }} {% endblock %}
{% endblock %}
{% endblock %}
{% endblock %} {% endblock %}