Plugin Author
weDevs
(@wedevs)
Hello,
You have to add some code in your child theme function.php file.
add_filter( ‘woocommerce_login_redirect’, ‘ckc_login_redirect’, 10, 2 );
function ckc_login_redirect( $redirect_url, $user ) {
// Change this to the url to Updates page
if( $user->roles[0] == 'seller' ) {
return dokan_get_navigation_url(‘dashboard’);
}
return $redirect_url;
}
Thanks.
Hi
Thanks a lot. Yes redirect is working now. There is one more question. There are total 4 dashboard pages created. And link of dashboard is /dashboard-4/. What is reason for this. Should I delete other pages and rename dashboard-4 to dashboard..?
Regards
Girish
Plugin Author
weDevs
(@wedevs)
Hello,
Please delete your extra dashboard pages. The URL should be like as- domain.com/dashboard.
Thanks.
Hello
Thanks . Now all is working fine. Again there is one question for you. Can I add continents list in location dropdown? In sellers shipping setting page, there is dropdown of Ships From..I want to append continents in top..Is it possible.
Any help will be highly appreciated.
Sorry to bother you again
Regards
Girish
Plugin Author
weDevs
(@wedevs)
Hello,
Those feature you have mentioned is not available in Lite version. In the pro version you will get all those things.
Thanks.
Hello I am using pro version. Please help me to add continents.
Regards
Girish
Plugin Author
weDevs
(@wedevs)
Please post in our own support forum. You will get help from there.
Thanks.
Hello
Sorry to bother you again. You have the given filter when user log in. I also want user should redirect after registration.
Please give me code for that also.
Thanks in advance
Girish
Plugin Author
weDevs
(@wedevs)
Hello
why dashboard page is created again and again. I deleted several times and again new dashboard page is created and url becomes /dashboard-2/.
And after login and user redirects to /dashboard/ which comes with design issues. Please help me with this
Thanks in advance
Regards
Girish
Plugin Author
weDevs
(@wedevs)
Hello,
It creates a new dashboard page when you will on this button. Please check the screenshot to see the button- http://i.imgur.com/tJh4Uw6.png. It also create new pages when you will install the plugin many times.
Your second question is not clear for me. Please provide a screenshot here.
Thanks.
Hello
ok got it. You have given answer for both questions
Thanks
Regards
Girish
Hi there!
I´m also trying to redirect the Vendor after registration to the Dashboard page but i´m not beeing able to do it, it keeps going to my-account page. Added the following code to functions.php but it is not working
add_filter( ‘woocommerce_login_redirect’, ‘ckc_login_redirect’, 10, 2 );
function ckc_login_redirect( $redirect_url, $user ) {
// Change this to the url to Updates page
if( $user->roles[0] == ‘seller’ ) {
return dokan_get_navigation_url(‘dashboard’);
}
return $redirect_url;
}
I really need this to work. Can you please help me?
Look forward for your reply
Many thanks my friends