Created
December 6, 2021 00:13
-
-
Save svaustin66/60e2e73118b1bb3578ec39091e1f18cd to your computer and use it in GitHub Desktop.
Liquid code for the subscription template to check customer has correct tag
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
| {% if customer.tags contains 'Active Subscriber' %} | |
| <main id="template-{{ template | replace: '.', '-' | handle }}" class="shopify-section article-page" data-check-for-order="true"> | |
| {% section 'article__banner' %} | |
| <section class="section__wrapper | |
| section | |
| "> | |
| <div class="container"> | |
| {% section 'article__sidebar' %} | |
| {% section 'article__main' %} | |
| </div> | |
| </section> | |
| </main> | |
| {% else %} | |
| <main id="template-{{ template | replace: '.', '-' | handle }}" class="shopify-section default-page"> | |
| <section class="section__wrapper | |
| section | |
| is-width-standard | |
| "> | |
| <div class="container page__container has-padding-top"> | |
| {% render 'heading', | |
| title: "Access not authorized", | |
| heading_tag: 'h1', | |
| context: 'page', | |
| text_alignment: 'center' | |
| %} | |
| </div> | |
| <div class="page__content content container"> | |
| {% render 'page-multi-column', content: pages.subscription-required.content %} | |
| </div> | |
| </section> | |
| </main> | |
| {% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment