order-detail
-
hi,all…
click here.Is anyone know how to show woocommerce order detail on customer page?
For now, when I click view order(the button in red frame), it just refresh the page and show the same page.Below is function.php which I add to show my order list on customer page.(and I use the shortcode[woocommerce_orders])
function woocommerce_orders() {
$user_id = get_current_user_id();
if ($user_id == 0) {
return do_shortcode(‘[woocommerce_my_account]’);
}else{
ob_start();
wc_get_template( ‘myaccount/my-orders.php’, array(
‘current_user’ => get_user_by( ‘id’, $user_id),
‘order_count’ => $order_count) );
return ob_get_clean();}}
add_shortcode(‘woocommerce_orders’, ‘woocommerce_orders’)`The page I need help with: [log in to see the link]
- The topic ‘order-detail’ is closed to new replies.