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

Open in your IDE?
  1. {% block page_checkout_finish_address_inner %}
  2.     {% set order = page.order %}
  3.     {% set deliveries = order.deliveries.elements %}
  4.     {% set billingAddress = order.billingAddress %}
  5.     {% if deliveries|length > 0 and order.billingAddress.id != deliveries|first.shippingOrderAddressId %}
  6.         {% set shippingAddress = deliveries|first.shippingOrderAddress %}
  7.     {% else %}
  8.         {% set shippingAddress = billingAddress %}
  9.     {% endif %}
  10.     <div class="row">
  11.         {# @deprecated tag:v6.5.0 - Billing address will be displayed after the shipping address. #}
  12.         {% block page_checkout_finish_address_billing %}
  13.             <div class="col-sm-6">
  14.                 <div class="card checkout-card">
  15.                     <div class="card-body">
  16.                         {% block page_checkout_finish_address_billing_title %}
  17.                             <div class="card-title">
  18.                                 {{ "checkout.billingAddressHeader"|trans|sw_sanitize }}
  19.                             </div>
  20.                         {% endblock %}
  21.                         {% block page_checkout_finish_address_billing_data %}
  22.                             <div class="finish-address-billing">
  23.                                 {% sw_include '@Storefront/storefront/component/address/address.html.twig' with {'address': billingAddress} %}
  24.                             </div>
  25.                         {% endblock %}
  26.                     </div>
  27.                 </div>
  28.             </div>
  29.         {% endblock %}
  30.         {# @deprecated tag:v6.5.0 - Shipping address will be displayed before the billing address. #}
  31.         {% block page_checkout_finish_address_shipping %}
  32.             {% if deliveries|length > 0 %}
  33.                 <div class="col-sm-6">
  34.                     <div class="card checkout-card">
  35.                         <div class="card-body">
  36.                             {% block page_checkout_finish_address_shipping_title %}
  37.                                 <div class="card-title">
  38.                                     {{ "checkout.shippingAddressHeader"|trans|sw_sanitize }}
  39.                                 </div>
  40.                             {% endblock %}
  41.                             {% block page_checkout_finish_address_shipping_data %}
  42.                                 <div class="finish-address-shipping">
  43.                                     {% sw_include '@Storefront/storefront/component/address/address.html.twig' with {'address': shippingAddress} %}
  44.                                 </div>
  45.                             {% endblock %}
  46.                         </div>
  47.                     </div>
  48.                 </div>
  49.             {% endif %}
  50.         {% endblock %}
  51.     </div>
  52. {% endblock %}