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

Remove customer details from the vendors

Add the below code in the functions.php file of your current active theme to hide the customer details from the vendor –

// Hide customer details from vendors
add_filter( 'is_vendor_can_see_customer_details', '__return_false' );
add_filter( 'is_vendor_can_see_order_billing_address','__return_false');
add_filter( 'is_vendor_can_see_order_shipping_address','__return_false'); // Hide shipping address
add_filter('show_cust_address_field', '__return_false');
add_filter('show_cust_billing_address_field','__return_false');
add_filter('show_cust_shipping_address_field','__return_false'); // Hide shipping address

// Remove customer details from vendor CSV headers
add_filter('mvx_vendor_order_generate_csv_headers', 'custom_mvx_remove_from_csv');
function custom_mvx_remove_from_csv($headers) {
    unset($headers['buyer_email']);
    unset($headers['buyer_contact']);
    unset($headers['buyer_name']);
    unset($headers['billing_address']);
    unset($headers['shipping_address']); // Remove shipping address from CSV
    return $headers;
}

// Remove customer details from vendor CSV data
add_filter('mvx_vendor_order_generate_csv', 'custom_mvx_remove_from_csv_data', 10, 2);
function custom_mvx_remove_from_csv_data($data, $order_id) {
    if (isset($data['buyer_email'])) {
        unset($data['buyer_email']);
    }
    if (isset($data['buyer_contact'])) {
        unset($data['buyer_contact']);
    }
    if (isset($data['buyer_name'])) {
        unset($data['buyer_name']);
    }
    if (isset($data['billing_address'])) {
        unset($data['billing_address']);
    }
    if (isset($data['shipping_address'])) {
        unset($data['shipping_address']); // Remove shipping address from CSV
    }
    return $data;
}









Leave a Reply

Shopping Cart
Scroll to Top