[Add New Users] WooCommerce Multi-Vendor and BuddyPress

I have a little issue with setting up multi vendor dashboard on my website. Once the user logs in it redirects them to their dashboard. But with a multi-vendor, its supposed to redirect to the wordpress dashboard of the vendor. But itt wouldn’t. Even after I set a redirect to send the vendor to a wordpress admin dashboard, it still would not. It says “Sorry, you are not allowed to access this page”

Please, how do I make this work??

Thanks in advance.

  • Ash

    Hello Olayinka

    This error is shown when the user is not a listed user for that subsite. I am not sure how woocommerce multi vendor works. Does it create an admin account for the dashboard or just have a separate role?

    If that is the case, then you can try this plugin: https://wordpress.org/plugins/multisite-user-management/

    This will automatically add the user to the subsite, and then you won't get that message.

    If I misunderstood, please feel free to suggest. Have a nice day!

    Cheers,
    Ash

  • Olayinka

    Thanks Ash,

    The user is a listed user. When you use BuddyPress and a user signs up, they are assigned the subscriber and participant role for forum.

    But a vendor can be assigned 3 different roles - vendor, vendor admin and vendor manager. These roles have their own dashboard which is very similar to the wp-admin dashboard and in fact, it uses same url. What I noticed is that even when I log with my account as an average user (subscriber), and then enter the http://mywpsite.com/wp-admin, it will automatically redirect it or should I say change the url to http://mywpsite.com/member/usename and then redirect to the normal BuddyPress dashboard.

    I need it to let vendors gain access to the wp-admin interface and not the Buddypress dashboard interface. Also, I am not running multisite.

    Thanks again.

  • Ash

    Hello Olayinka

    What I noticed is that even when I log with my account as an average user (subscriber), and then enter the http://mywpsite.com/wp-admin, it will automatically redirect it or should I say change the url to http://mywpsite.com/member/usename and then redirect to the normal BuddyPress dashboard.

    What it seems is, you already have a script which is doing this redirect. Do you know which plugin may set that redirect? Or do you have any custom code on mu-plugins which may do this redirection?

    If you are not sure, would you please try disabling all other plugins except buddypress? And then try enabling one by one and find out which one is causing this force redirect? We need to find out the redirect and then we can modify that one.

    Please let us know if you find anything. Have a nice day!

    Cheers,
    Ash

    • Olayinka

      To be honest, I think it is both BuddyPress and BBPress that are the responsible for vendors being unable to access their dashboards in order to be able to add their products and do many other stuff.

      But the thing is, I really need to achieve an online community and a multi-vendor shop in one platform (WordPress installation.) Kindly advise, how do I go about it? Should I just run a Multi Site or what do I do because as it is, the bulk of BuddyPress extensions seem to be redirecting the vendors to the social platform dashboard?

      I appreciate your support.

      Olayinka

      • Ash

        Hello Olayinka

        Interesting, though buddypress and bbpress should not block admin interface, never happened for me. But yeah, any extension type of plugin can do that.

        Anyway, would you please send me details of your requirement with a real example and access?

        I mean, send me username and password for members from the different roles with the link where they should land after login.

        With that, please send me admin username and cPanel access as well.

        You can send me privately in the following format:
        1. Please go to https://premium.wpmudev.org/contact/#i-have-a-different-question
        2. Select "I have a different question" if not selected
        3. In subject line put "Attn-Ash" (this will ensure that the email is assigned to me)
        4. Provide the wanted details.
        5. Add the thread link in the message so that I can track.

        I will take a look. Have a nice day!

        Cheers,
        Ash