Redirect To Second Storefront


I am looking for a way to redirect users from a specific user group to a second storefront. Preferably, the redirect would happen after they log in.

I have searched and found way to redirect a user to a page, but not a different storefront/url.

Any help is appreciated.


You can use the login_user_post hook in the fn_login_user function (app/functions/fn.users.php) to check customer user group and make redirect