Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Something big is coming for marketplace admins… MultiVendorX 5.0 is almost here. Are you ready?
Be the first to explore all the game-changing features!
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

View Categories

Add main order id column in vendor order page

Add the below code on your functions.php file of your current active theme to add the main order id in the vendor dashboard along with the suborder id –

add_filter('mvx_datatable_order_list_table_headers', 'test_callback', 10, 2);
function test_callback($orders_list_table_headers, $current_user_id) {
    $orders_list_table_headers['main_order_id'] = array('label' => __( 'Main Order', 'multivendorx' ));
    return $orders_list_table_headers;
}
add_filter('mvx_datatable_order_list_row', 'test_function', 10, 2);
function test_function($vendor_rows, $order) {
    $vendor_rows['main_order_id'] = wp_get_post_parent_id( $order->get_id() );
    return $vendor_rows;
}

Leave a Reply

Shopping Cart
Scroll to Top