{# # View Order (Bootstrap 5 Override) # # Shows details of a specific order on the account page # with summary card, status badge, and order notes. # HPOS compatible: uses WC_Order methods only. # # Expected context: # order_id - Order ID # order - WC_Order object # # WooCommerce PHP equivalent: myaccount/view-order.php # # @package WcBootstrap # @since 0.1.0 #} {% set notes = order.get_customer_order_notes() %}

{{ __('Order #%s')|format(order.get_order_number()) }}

{% include 'components/status-badge.html.twig' with { status: order.get_status() } %}
{% if notes %}

{{ __('Order updates') }}

{% for note in notes %}
{{ date_i18n(__('l jS \\o\\f F Y, h:ia'), strtotime(note.comment_date)) }}
{{ wpautop(wptexturize(note.comment_content))|raw }}
{% endfor %}
{% endif %} {{ do_action('woocommerce_view_order', order_id) }}