• Home
  • Forums
  • Dokan
  • How do I go about creating a seller registration page on the front end
Viewing 8 Topics - 16 through 23 (of 23 total)
Author Posts
June 8, 2015 at 6:32 pm 46509
Nayem Nayem

After login it will redirect to the my account page by default. If you want to redirect seller to his dashboard after login then please insert those code in your child theme function.php file-

[php]

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;
}

[/php]

June 8, 2015 at 7:24 pm 51483
NDR INVESTMENTS NDR INVESTMENTS This reply has been marked as private.
June 8, 2015 at 7:31 pm 51487
Nayem Nayem This reply has been marked as private.
June 8, 2015 at 8:12 pm 51488
NDR INVESTMENTS NDR INVESTMENTS This reply has been marked as private.
June 9, 2015 at 10:29 am 51508
Nayem Nayem This reply has been marked as private.
June 9, 2015 at 4:24 pm 51582
NDR INVESTMENTS NDR INVESTMENTS This reply has been marked as private.
June 9, 2015 at 5:11 pm 51591
Nayem Nayem This reply has been marked as private.
June 9, 2015 at 8:17 pm 51618
NDR INVESTMENTS NDR INVESTMENTS

Thanks for all your help.

Viewing 8 Topics - 16 through 23 (of 23 total)