Hi Team,
Am trying to replicate orders page into a separate page which will display only orders in a particular status.
Am able to successfully do that with a piece of code. However the template is displaying the orders in the woocommerce standard orders template and not as per the woodmart theme. Could you please help me on this. I want the display of this custom page also to be like Orders list view under MyAccount.
Following is the code which I used.
wc_get_template(
‘myaccount/orders.php’,
array(
‘current_page’ => absint( $current_page ),
‘customer_orders’ => $customer_orders,
// ‘status’ => ‘wc-completed’,
‘has_orders’ => 0 < $customer_orders->total,
)