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.         {% block page_checkout_finish_address_billing %}
  12.             <div class="col-sm-6">
  13.                 <div class="card checkout-card">
  14.                     <div class="card-body">
  15.                         {% block page_checkout_finish_address_billing_title %}
  16.                             <div class="card-title">
  17.                                 {{ "checkout.billingAddressHeader"|trans|sw_sanitize }}
  18.                             </div>
  19.                         {% endblock %}
  20.                         {% block page_checkout_finish_address_billing_data %}
  21.                             <div class="finish-address-billing">
  22.                                 {% sw_include '@Storefront/storefront/component/address/address.html.twig' with {'address': billingAddress} %}
  23.                             </div>
  24.                         {% endblock %}
  25.                     </div>
  26.                 </div>
  27.             </div>
  28.         {% endblock %}
  29.         {% block page_checkout_finish_address_shipping %}
  30.             <div class="col-sm-6">
  31.                 <div class="card checkout-card">
  32.                     <div class="card-body">
  33.                         {% block page_checkout_finish_address_shipping_title %}
  34.                             <div class="card-title">
  35.                                 {{ "checkout.shippingAddressHeader"|trans|sw_sanitize }}
  36.                             </div>
  37.                         {% endblock %}
  38.                         {% block page_checkout_finish_address_shipping_data %}
  39.                             <div class="finish-address-shipping">
  40.                                 {% sw_include '@Storefront/storefront/component/address/address.html.twig' with {'address': shippingAddress} %}
  41.                             </div>
  42.                         {% endblock %}
  43.                     </div>
  44.                 </div>
  45.             </div>
  46.         {% endblock %}
  47.     </div>
  48. {% endblock %}