How do I selectively redirect after login

Shopify Expert
50 0 3

First up: here's the site http://rawfoodcentral.myshopify.com
Password is: kalechips

So, I'm using the Lockdown app, and here's what I'm doing:

1. When a logged-out user comes to a locked down page, I send them to a "you need to be a member to view that page" page, with a link to log in.

2. Once they log in, I'm trying to send them back to the page they came from, which they should now be able to view (if they are a member).

Instead what happens is after they login, they are looking at their account page.

This page seemed to offer what I wanted, but it appears to redirect all logins including those a customer might make before checking out (which I don't want to redirect). 

My question: How can I make it so when someone logs in from a "locked down" member page, that I send them back to that page after they log in? 

0 Likes
Shopify Expert
9979 84 1491

I've not used the app so don't know if it's a built in feature or not but perhaps setting a cookie could help. On the lock-down page set a cookie - say redirect_me_yo that contains the url for the redirect, on the account page check for the cookie and redirect as required (clearing the cookie in the process).

something like that anyway...

 

 

 

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Shopify Expert
50 0 3

That's actually a good idea, I hadn't thought about a simple client-side approach like that.

0 Likes