Home Forums Theme Support Dokan How do I go about creating a seller registration page on the front end

This topic is: not resolved

This topic contains 23 replies, has 2 voices, and was last updated by  NDR INVESTMENTS 3 years, 10 months ago.

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #46508

    NDR INVESTMENTS
    Member
    Post count: 43
    This reply has been marked as private.
    #46509

    Nayem
    Moderator
    Post count: 6480

    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]

    #51483

    NDR INVESTMENTS
    Member
    Post count: 43
    This reply has been marked as private.
    #51487

    Nayem
    Moderator
    Post count: 6480
    This reply has been marked as private.
    #51488

    NDR INVESTMENTS
    Member
    Post count: 43
    This reply has been marked as private.
    #51508

    Nayem
    Moderator
    Post count: 6480
    This reply has been marked as private.
    #51582

    NDR INVESTMENTS
    Member
    Post count: 43
    This reply has been marked as private.
    #51591

    Nayem
    Moderator
    Post count: 6480
    This reply has been marked as private.
    #51618

    NDR INVESTMENTS
    Member
    Post count: 43

    Thanks for all your help.

Viewing 9 posts - 16 through 24 (of 24 total)

The topic ‘How do I go about creating a seller registration page on the front end’ is closed to new replies.