Created
December 5, 2021 23:03
-
-
Save svaustin66/c1653082316ff9499dc491cf8b2a3c28 to your computer and use it in GitHub Desktop.
Requiring login across the entire 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 }}"> | |
| <head> | |
| {% unless customer %} | |
| {% if template contains 'customers' %} | |
| {% assign send_to_login = false %} | |
| {% else %} | |
| {% assign send_to_login = true %} | |
| {% endif %} | |
| {% endunless %} | |
| {% if send_to_login and request.path != "/challenge" %} | |
| <meta content="0; url=/account/login" http-equiv="refresh" /> | |
| {% else %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment