Hi. How can we help?

Remove customer email and customer phone from single order page for vendors

In order to remove the customer email and phone you can use this code:

if( ! function_exists( 'yith_wcmv_remove_customer_information_in_vendor_orders' ) ){
function yith_wcmv_remove_customer_information_in_vendor_orders(){
if( function_exists( 'yith_get_vendor' ) && function_exists( 'YITH_Frontend_Manager' ) && ! empty( YITH_Frontend_Manager()->gui ) && YITH_Frontend_Manager()->gui->is_main_page() ){
$vendor = yith_get_vendor( 'current', 'user' );
if( $vendor->is_valid() ){
$script = "jQuery( '.order_data_column' ).find('.address').find('p').not(':nth-child(1)').remove();";
wc_enqueue_js( $script );
}
}
}
}

 You can add it in functions.php file located in the main root of your theme.

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center >

Powered by Zendesk