Created
December 5, 2021 23:58
-
-
Save svaustin66/3166452b1f8f4a182d18a1f2f995934d to your computer and use it in GitHub Desktop.
Restrict access by page to certain parts of a Shopify store
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html lang="{{ shop.locale }}"> | |
| {% if template contains "subscription" %} | |
| <!-- Subscription Content --> | |
| {% unless customer %} | |
| {% assign send_to_login = true %} | |
| {% endunless %} | |
| {% endif %} | |
| {% if send_to_login and request.path != "/challenge" %} | |
| <!-- Need to login --> | |
| <meta content="0; url=/account/login?checkout_url={{ request.path }}" http-equiv="refresh" /> | |
| {% else %} | |
| <head> </head> | |
| <body> </body> | |
| {% endif %} | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment