Hello,
Are you using any marketplace plugin with WooCommerce? I have checked and it is working fine with the WooCommerce.
Hi – what do you mean by a marketplace plugin? What are some examples?
Thanks – Erik
I meant something like WC Vendor, Dokan etc. If still you are facing issue then contact me here- http://nayemdevs.com/contact/.
Thanks.
hi nayemDevs.. actually i’m using dokan market place for my website http://orsango.com/ but after registration redirect to the home page pls give me solution.
@riyaz As Dokan has seller role so you have to check the role first. If seller then it will redirect to a specific page. You can get idea from this code-
add_filter(‘woocommerce_registration_redirect’, ‘ps_wc_registration_redirect’);
function ps_wc_registration_redirect( $redirect_to ) {
if ( is_user_logged_in() ){
$current_user = wp_get_current_user();
if( $current_user->roles[0] == ‘seller’ ) {
$redirect_to = dokan_get_navigation_url( ‘dashboard’ );
return $redirect_to;
}
}
return $redirect_to;
}
Now, you can deactivate my plugin and just paste these code into your theme’s function.php file.
Dear nayemDevs
Thank you so much!!