{# # Order Details Customer (Bootstrap 5 Override) # # Displays billing and shipping addresses for a completed order. # HPOS compatible: uses WC_Order methods only. # # Expected context: # order - WC_Order object # # WooCommerce PHP equivalent: order/order-details-customer.php # # @package WcBootstrap # @since 0.1.0 #} {% set show_shipping = not wc_ship_to_billing_address_only() and order.needs_shipping_address() %}

{{ __('Billing address') }}

{{ order.get_formatted_billing_address(__('N/A'))|wp_kses_post }} {% if order.get_billing_phone() %}

{{ order.get_billing_phone()|esc_html }}

{% endif %} {% if order.get_billing_email() %} {% endif %} {{ do_action('woocommerce_order_details_after_customer_address', 'billing', order) }}
{% if show_shipping %}

{{ __('Shipping address') }}

{{ order.get_formatted_shipping_address(__('N/A'))|wp_kses_post }} {% if order.get_shipping_phone() %}

{{ order.get_shipping_phone()|esc_html }}

{% endif %} {{ do_action('woocommerce_order_details_after_customer_address', 'shipping', order) }}
{% endif %}
{{ do_action('woocommerce_order_details_after_customer_details', order) }}