• Resolved vishakhanehe

    (@vishakhanehe)


    Hi Team,
    Using Dokan multi-vendor plugin. Some issues which I am facing, i.e. If a new Vendor register then instead of redirecting to Vendor Dashboard, it is redirected to the home page.

    I used this hook in my functions.php but in this case my URL becomes: ‘baseurl/sellerhub/sellerhub’

    add_filter( 'woocommerce_login_redirect', 'ckc_login_redirect', 10, 2 );
    function ckc_login_redirect( $redirect_url, $user ) {
        if( $user->roles[0] == 'seller') {
            return dokan_get_navigation_url('/sellerhub');   
        } 
    	
        return $redirect_url;
    }

    Let me know how to resolve it?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter vishakhanehe

    (@vishakhanehe)

    Anybody can help with this issue?

    Hello @vishakhanehe ,

    In some themes, the vendors do not get redirected. The code you are using is correct. You can return the exact URL instead of calling the dokan_get_navigation_url.

    Take a look at this solution: https://www.businessbloomer.com/woocommerce-redirect-customer-to-url-upon-login/

    There is a plugin as well: https://www.ads-software.com/plugins/role-based-redirect/

    Thank you ??

    Thread Starter vishakhanehe

    (@vishakhanehe)

    Hi Team,
    Thanks for reply!
    This weird issue is happening with the registered users via my-account page.

    If I create a seller from admin then there is no issue in redirection to seller dashboard, login works fine.

    – The same issue is happening if any vendor registers via my-account page. After register, that vendor is redirecting to the home page where he has to log in again.

    Please let me know how to solve this.

    Thread Starter vishakhanehe

    (@vishakhanehe)

    Hi Team,
    Please let me know if there is any update.

    Hello @vishakhanehe ,

    Unfortunately, I could not reproduce the issue of having Storefront as my theme. I believe using the mentioned custom code or plugin you can overcome the situation.

    If you need us to investigate further, you can create a ticket through our site.

    Thank you ??

    Thread Starter vishakhanehe

    (@vishakhanehe)

    Hi,

    I did a local setup and everything is perfect with the same theme which I am having + all the existing plugins + woocommerce + Dokan but idk what is wrong with the production, would like to understand why the functionality is breaking.

    Is there a way to debug? I would be very grateful.

    Hello @vishakhanehe ,

    In general, to debug the issue we can do a plugin & theme conflict test.

    1. Change to a different theme than the current one.
    2. Deactivate all plugins except Dokan & WooCommrce.

    It is hard to tell why a setting is not working in your production while working on the test site. Make sure you do not have any custom code on your current theme on theme that alters the page titles.

    Thank you.

    Thread Starter vishakhanehe

    (@vishakhanehe)

    Hi @rur165,
    For the theme conflict test, My local setup is the same as the prod one and even I use to push on local first then via git only, I deploy on prod. So, I simply can say, everything is the same.

    Is it a way to delete all the settings of Dokan plugins and to start with a fresh because I tried on local but my old settings persist, and in this way, Dokan pages are not deleted if I delete the Dokan plugin and install again.

    Let me know if reinstall can save me.

    Hello @vishakhanehe ,

    Unfortunately, there is no direct way to remove everything from the database that is added via Dokan.

    You can do it manually by following this article: https://helpdeskgeek.com/wordpress/how-to-remove-all-traces-of-a-wordpress-plugin/

    Please test the database modifications in a staging site first.

    Thank you ??

    Hi @vishakhanehe,

    Since we haven’t got any further reply from you, so I mark this topic as resolved. If you’ve any further queries, feel free to create a new thread.

    Thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘New seller is net redirecting to dashboard’ is closed to new replies.