<?php wc_get_template('myaccount/payment-methods.php');?>
<?php wc_get_template('myaccount/my-address.php');?>
<?php
$current_page = empty( $current_page ) ? 1 : absint( $current_page );
$customer_orders = wc_get_orders( apply_filters( 'woocommerce_my_account_my_orders_query', array( 'customer' => get_current_user_id(), 'page' => $current_page, 'paginate' => true, 'posts_per_page' => 1 ) ) );
wc_get_template(
'myaccount/orders.php',
array(
'current_page' => absint( $current_page ),
'customer_orders' => $customer_orders,
'has_orders' => 0 < $customer_orders->total,
)
);
?>
<button>
<a href="<?php echo wc_get_endpoint_url( 'orders');?>">View All Orders</a>
</button>