Manipulate Redirection Depending on User Role

I have set up two roles: retailer, and distributor. They have their own log-in redirect functions that go to their respective account page (/retailer-account and /ds-account) once logged in. The distributor is allowed to make orders for a retailer. Once a distributor user triggers the Shop As Customer function and chooses a retailer user to shop as, due to the redirection set-up, we get this result:

Manipulate Redirection Depending on User Role

I want it to go to the respective retailer's user account page after a distributor chooses that retailer user to shop as.

I can set up a temporary login (or you can sign up for a temporary distributor login) at http://ideabar.wpengine.com for you to see this error in realtime.

Update: I've tried manipulating the url that's in the functions in the shop-as-customer.php and we're getting the same result, which leads me to believe that the nonce isn't verifying for some reason. I would like some help with this as soon as you possibly can. Thank you.

Add Comment
2 Answer(s)

Sorry for the reply delay.

We're going to have the developer have a look at this.

Sean

Answered on November 9, 2016.
Add Comment

We're sorry but it seems this support request has slipped under our radar, but we'd still like to have a look.

Would it be possible for you to send us login details so that we can have a look at your unique setup? It would be really helpful.

Thanks again 🙂

Answered on January 11, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.