vendor/shopware/storefront/Resources/views/storefront/page/checkout/confirm/confirm-address.html.twig line 1

Open in your IDE?
  1. {% block page_checkout_confirm_address_inner %}
  2.     {# @var page \Shopware\Storefront\Page\Checkout\Confirm\CheckoutConfirmPage #}
  3.     {% if page.order %}
  4.         {% set order = page.order %}
  5.         {% set deliveries = order.deliveries.elements %}
  6.         {% set billingAddress = order.billingAddress %}
  7.         {% if deliveries|length > 0 and order.billingAddress.id != deliveries|first.shippingOrderAddressId %}
  8.             {% set shippingAddress = deliveries|first.shippingOrderAddress %}
  9.         {% else %}
  10.             {% set shippingAddress = billingAddress %}
  11.         {% endif %}
  12.     {% else %}
  13.         {% set billingAddress = context.customer.activeBillingAddress %}
  14.         {% set shippingAddress = context.customer.activeShippingAddress %}
  15.     {% endif %}
  16.     {% block page_checkout_confirm_address %}
  17.         <div class="row js-confirm-overview-addresses">
  18.             {# @deprecated tag:v6.5.0 - Billing address will be displayed after the shipping address. #}
  19.             {% block page_checkout_confirm_address_billing %}
  20.                 <div class="col-sm-6 card-col confirm-billing-address">
  21.                     <div class="card checkout-card">
  22.                         <div class="card-body">
  23.                             {% block page_checkout_confirm_address_billing_title %}
  24.                                 <div class="card-title">
  25.                                     {{ "checkout.billingAddressHeader"|trans|sw_sanitize }}
  26.                                 </div>
  27.                             {% endblock %}
  28.                             {% block page_checkout_confirm_address_billing_data %}
  29.                                 <div class="confirm-address-billing">
  30.                                     {% sw_include '@Storefront/storefront/component/address/address.html.twig' with {
  31.                                         'address': billingAddress
  32.                                     } %}
  33.                                 </div>
  34.                             {% endblock %}
  35.                             {% block page_checkout_confirm_address_billing_actions %}
  36.                                 <div class="card-actions">
  37.                                     {# @deprecated tag:v6.5.0 - Option addressEditorOptions.csrfToken will be removed. #}
  38.                                     {% set addressEditorOptions = {
  39.                                         changeBilling: true,
  40.                                         addressId: billingAddress.id,
  41.                                         csrfToken: sw_csrf("frontend.account.addressbook", {"mode": "token"})
  42.                                     } %}
  43.                                     {% block  page_checkout_confirm_address_billing_actions_link %}
  44.                                         <a href="{{ path('frontend.account.address.edit.page', {'addressId': billingAddress.id}) }}"
  45.                                            title="{{ "account.overviewChangeBilling"|trans|striptags }}"
  46.                                            class="btn btn-light"
  47.                                            data-address-editor="true"
  48.                                            data-address-editor-options='{{ addressEditorOptions|json_encode }}'>
  49.                                             {{ "account.overviewChangeBilling"|trans|sw_sanitize }}
  50.                                         </a>
  51.                                     {% endblock %}
  52.                                 </div>
  53.                             {% endblock %}
  54.                         </div>
  55.                     </div>
  56.                 </div>
  57.             {% endblock %}
  58.             {# @deprecated tag:v6.5.0 - Shipping address will be displayed before the billing address. #}
  59.             {% block page_checkout_confirm_address_shipping %}
  60.                 {% if page.cart is defined %}
  61.                     {% set lineItems = page.cart.lineItems %}
  62.                 {% endif %}
  63.                 {% if page.order is defined %}
  64.                     {% set lineItems = page.order.lineItems %}
  65.                 {% endif %}
  66.                 {% if not page.isHideShippingAddress() %}
  67.                     <div class="col-sm-6 card-col confirm-shipping-address">
  68.                         <div class="card checkout-card">
  69.                             <div class="card-body">
  70.                                 {% block page_checkout_confirm_address_shipping_title %}
  71.                                     <div class="card-title">
  72.                                         {{ "checkout.shippingAddressHeader"|trans|sw_sanitize }}
  73.                                     </div>
  74.                                 {% endblock %}
  75.                                 {% block page_checkout_confirm_address_shipping_data %}
  76.                                     <div class="confirm-address-shipping">
  77.                                         {# @deprecated tag:v6.5.0 - "Address equals"-logic will be moved into billing address cart. #}
  78.                                         {% if billingAddress.id is same as(shippingAddress.id) %}
  79.                                             {# @deprecated tag:v6.5.0 - Block will be moved into billing address cart and renamed to `page_checkout_confirm_address_billing_data_equal` #}
  80.                                             {% block page_checkout_confirm_address_shipping_data_equal %}
  81.                                                 <p>
  82.                                                     {{ "checkout.addressEqualText"|trans|sw_sanitize }}
  83.                                                 </p>
  84.                                             {% endblock %}
  85.                                         {% else %}
  86.                                             {% sw_include '@Storefront/storefront/component/address/address.html.twig' with {
  87.                                                 'address': shippingAddress
  88.                                             } %}
  89.                                         {% endif %}
  90.                                     </div>
  91.                                 {% endblock %}
  92.                             {% block page_checkout_confirm_address_shipping_actions %}
  93.                                 <div class="card-actions">
  94.                                     {# @deprecated tag:v6.5.0 - Option addressEditorOptions.csrfToken will be removed. #}
  95.                                     {% set addressEditorOptions = {
  96.                                         changeShipping: true,
  97.                                         addressId: shippingAddress.id,
  98.                                         csrfToken: sw_csrf("frontend.account.addressbook", {"mode": "token"})
  99.                                     } %}
  100.                                         {% block  page_checkout_confirm_address_shipping_actions_link %}
  101.                                             <a href="{{ path('frontend.account.address.edit.page', {'addressId': shippingAddress.id}) }}"
  102.                                                title="{{ "account.overviewChangeShipping"|trans|striptags }}"
  103.                                                class="btn btn-light"
  104.                                                data-address-editor="true"
  105.                                                data-address-editor-options='{{ addressEditorOptions|json_encode }}'>
  106.                                                 {{ "account.overviewChangeShipping"|trans|sw_sanitize }}
  107.                                             </a>
  108.                                         {% endblock %}
  109.                                     </div>
  110.                                 {% endblock %}
  111.                             </div>
  112.                         </div>
  113.                     </div>
  114.                 {% endif %}
  115.             {% endblock %}
  116.         </div>
  117.     {% endblock %}
  118. {% endblock %}