Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards

Remove certain section from the vendor dashboard and single product page

Remove the progress bar #

To remove the progress bar from the vendor dashboard you need to add the below code in the functions.php file of your current active theme –


add_filter( 'mvx_vendor_dashboard_show_progress_bar', '__return_false');

Remove tabs from the single product page #

To remove the different tabs from the single product page you need to add the below code in the functions.php file of your current active theme



add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 99 );
function woo_remove_product_tabs( $tabs ){
	unset( $tabs['vendor'] );     //  vendor tab
	unset( $tabs['mvx_customer_qna'] ); // Questions & Answers
        unset( $tabs['singleproductmultivendor'] ); // More Offer
    return $tabs;
}

	

Remove different tabs from vendor dashboard #

Add the below code in the functions.php file of your current active theme to remove the Customer questions, tools, orders etc. from the vendor dashboard –

add_filter('mvx_vendor_dashboard_nav', 'callback_mvx_vendor_dashboard_nav', 99);
function callback_mvx_vendor_dashboard_nav($vendor_nav){
unset($vendor_nav['store-settings']['submenu']['products-qna']);
unset($vendor_nav['store-settings']['submenu']['vendor-followers']);
unset($vendor_nav['store-settings']['submenu']['vendor-billing']); 
unset($vendor_nav['vendor-report']);
unset($vendor_nav['vendor-payments']);
unset($vendor_nav['vendor-orders']);
unset($vendor_nav['vendor-tools']);
return $vendor_nav;
}

Leave a Reply