I am building a subscription service and in order to have proper navigation a few pages can only be visible for signed in customers. How can I “lock” a page? I want not-signed in users to get directed to the sign-in page (all without account could click on registration and create the account) which redirects then after completion to the now unlocked page. Logged in customers should be able to see the content right away oft course. I’d prefer not to use an app that costs monthly. Thank you!
Merchants that must have this customization can contact me with store url , theme and relevant details such as this topic url at paull.newton+shopifyforums@gmail.com
You will need to either A) customize your theme in those pages to:
check if the customer is logged show content
If not show the login, or redirect to the login
At it’s most basic - frontend account access control in liquid is done with:
To synthesize the entirety there are similar discusions commonly found about “wholesale”/“membership” customizations using customer.tags, and threads about redirecting after login
@PaulNewton has given you a great option in his reply. But in the chance you’re not comfortable with editing or touching code yourself, you can hire a Shopify Expert to set this up on your store as a small task job. I know you mentioned not wanting to use an app for monthly cost reasons, but the task is normally a once off payment and not monthly. I just wanted to expand your possible options here in case you didn’t want to edit the code. You can see the Experts Directory here.
I know you are trying to avoid an app because of monthly costs but dont forget that apps come with tech support so if it doesn’t work you dont have to spend valuable time trying to figure things out.
Have a look at Locksmith - its pennies and does what you want it to.