Thanks for replying but I don’t think that would solve my issue as s2member takes full control of login re-directs. I need to first clear up some confusion. The MyAccount page is a page created by WooCommerce for customers who want to check their orders made to the Shop and store their delivery information.
The main goal here is to separate shoppers/customers with customer accounts from subscribed BP members who have s2member level capabilities by a simple redirection on login to their respected pages.
As you already know, in the s2Member settings there is a setting for inputting a special redirection URL so that BP users gets redirected to their BP profile once they login. This special re-direction URL points to the BP profile of the logged in user.
BP is set up in a way where it treats every user as a BP Member if they at least have the capabilities to read. So S2member would recognise any user including shoppers that have customer accounts created through Woo-Commerce as a BP user. Hence why s2Member tries to direct customers to their BP profile but since they don’t have s2member capabilities they get re-directed to the Membership Sign Up page (So a double redirection).
I know that what s2Member is doing with regards to redirecting users with WC customer accounts is intended behaviour based on these two factors:
- WC shoppers with customer accounts are also BP members
- WC shoppers with customer accounts are not s2Members with level 1-5
I’ve been trying to see if I can hook into s2Members login redirect mechanism to make a special case for WC customers who login on the site.