• Resolved admxk

    (@admxk)


    good afternoon,

    I have the same problem as in the support article below, but it occurs on my website when anyone logs in through the website.

    redirect vendors to dokan dashboard

    Also, Dokan is not showing my registered products, as in the link below it shows that I have 2 products but does not display any and sometimes it is showing someone else’s products.

    Link

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @admxk,

    We are sorry to hear that you’re facing issues with the redirection to the Dokan dashboard and the display of registered products. Could you verify that there are no conflicts on your website? You can perform a conflict test according to this forum comment.

    Thanks!

    Thread Starter admxk

    (@admxk)

    Good morning,

    I tried to perform the procedure mentioned but the problem persists. I will explain again what happens, all users who are being registered as sellers at the time are logging in via my-account which is the login via woocommerce, it redirects itself to Dokan. The site I’m helping is reporting this issue. I created below images of a small VM (Virtual Machine) on my computer that has the following configuration;

    Processor: Amd Ryzen 5 5600 (4 Threads)
    Memory: 10GB
    OS: CentOS 9 Stream (with addition of AAPANEL for wordpress management)
    WordPress version: 6.4.2
    PHP: 8.2.8
    Nginx: 1.24.0
    Database: Mysql 8.0.34

    I put all the screenshots of everything installed in this instance and even in this new instance, little used with the Blocksy theme, it presented the same situation, the person is placed as a seller, when logging in through woocommerce (my-account) after the login it redirects directly to Dokan. Where I’m helping to set up the site doesn’t want Dokan to open automatically, this recently started this problem.

    Below (Prints) are screenshots of the testing environment in the VM, if you want some additional details.
    Prints

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @admxk,

    At this moment, the default behavior of Dokan is that once a user is registered as a seller, s/he will be redirected to the Vendor Dashboard after logging in. It has been controlled using the function named dokan_after_login_redirect. You can find the definition of that function by visiting wp-content/plugins/dokan-lite/includes/functions.php this file’s line number 2594.

    We have used woocommerce_login_redirect this hook to add this functionality. You can use the below-mentioned code to remove the functionality of redirecting the user to the vendor dashboard when registered as a seller from the WooCommerce my-account page.

    remove_filter( 'woocommerce_login_redirect', 'dokan_after_login_redirect', 1, 2 );

    I hope this will help. Let me know if I missed anything from your issue. Thanks!

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @admxk,

    Due to inactivity, we are marking this topic as resolved. Feel free to open a new one if you face any further issues.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Login redirect and products bug’ is closed to new replies.