Hi there,
Thanks for contact us! To hide billing and shipping section in order details page, plase copy and past this code at the end of functions.php file:
add_action( 'admin_enqueue_scripts', 'yith_wcmv_remove_information_from_order', 15 );
if ( ! function_exists( 'yith_wcmv_remove_information_from_order' ) ) {
function yith_wcmv_remove_information_from_order() {
if ( function_exists( 'yith_get_vendor' ) ) {
global $pagenow;
if ( ( 'post.php' == $pagenow && ! empty( $_GET['post'] ) && 'shop_order' == get_post_type( $_GET['post'] ) )
||
( 'post-new.php' == $pagenow && ! empty( $_GET['post_type'] ) && 'shop_order' == $_GET['post_type'] )
) {
$vendor = yith_get_vendor( 'current', 'user' );
if ( $vendor->is_valid() && $vendor->has_limited_access() ) {
$css = "#order_data .order_data_column:nth-child(2), #order_data .order_data_column:nth-child(3) {display: none;}";
wp_add_inline_style( 'yith-wc-product-vendors-admin', $css );
$js = 'jQuery("#order_data .order_data_column:nth-child(2)").add("#order_data .order_data_column:nth-child(3)").remove();';
wc_enqueue_js( $js );
}
}
}
}
}
I hope this solution works fine for you.