Support » Plugin: WC Vendors Marketplace - The WooCommerce Multivendor Marketplace Solution » WC Vendors, breaking register page + causing redirect

  • Resolved mikelast

    (@mikelast)


    Hello,

    I am using buddypress and woocommerce etc. When I activate your plugin the register page (required by BP), I am no longer able to navigate to the register page, we are auto redirected back to the login page. I should point out that I have a custom plugin which redirects all NON logged in users to the login page, in order to whitelist certain pages I have used a is_page() check with an array of page names for example

    $isPage = is_page(['login','register','activate','password-reset','password-lost','social'])

    When I activate your plugin the register page comes back false from the check above. Any idea where I need to look or what I can adjust, any filters or hooks?

    regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jamie

    (@digitalchild)

    Hi Mike,

    When you disable your override code does the plugin function? Or is it still breaking?

    We use the woocommerce registration page, but I’m not sure what would be causing the issue.

    What hook are you using to override all redirects?

    cheers,

    jamie.

    Thread Starter mikelast

    (@mikelast)

    Hmm, I wonder if that is the issue, because I am using the buddypress registration process, perhaps they conflict in some way.

    With regards to the redirect hook I am using template_redirect.

    Is there anyway to disable registration on your plugin?

    For anyone coming across this with a similar problem, I have found a workaround, but its probably not the best.
    I set the buddypress registration page to register, then I created a new page called registration. I created a page template and put all of the register.php code into (some modifications were required but im not gonna detail them here). I set the registration page to use the new page template I created, but the actual register form would still submit to the buddypress register page. I then added a few functions to set the proper global buddypress signup values, and set up a redirect page to my registration page if we had errors occur during registration. I need to do some further testing, but I was able to create a few new accounts.

    Plugin Author Jamie

    (@digitalchild)

    Hello,

    We dont have an independent registration system. We hook into the WooCommerce system. I’m still puzzled that this is an issue however I don’t use or test buddypress.

    Can I mark this as resolved ?

    cheers,

    Jamie.

    Thread Starter mikelast

    (@mikelast)

    Yeah go ahead it doesnt sound like its a problem with your plugin per say.

    Thanks for getting back to me

    Plugin Author Jamie

    (@digitalchild)

    Hello,

    Ok, however if you need any actions/filters added to assist in your endeavour you can always submit a pull request on our GitHub and we can look at adding them.

    cheers,

    Jamie.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WC Vendors, breaking register page + causing redirect’ is closed to new replies.