Answer the question
In order to leave comments, you need to log in
How to display Total Order in any part of the site (woocommerce)?
found the code
<li class="woocommerce-order-overview__total total">
<?php esc_html_e( 'Total:', 'woocommerce' ); ?>
<strong><?php echo $order->get_formatted_order_total(); ?></strong>
</li>
Answer the question
In order to leave comments, you need to log in
Here, most likely, you need the total amount of the basket and not the order, because. Order is an already formed order.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question