Last active
October 11, 2017 16:59
-
-
Save boldsupport/474444fc7f2fc3b369dc to your computer and use it in GitHub Desktop.
Recurring Memberships, linked from: https://support.boldcommerce.com/hc/en-us/articles/206500375-Recurring-Memberships-Snippet-Files
This file contains 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
{% comment %}This snippet is generated and updated by Bold Memberships.{% endcomment %} | |
{% assign bold_hide_item = false %} | |
{% assign bold_item_type = 'product'%} | |
{% for bold_rule in product.metafields.bold_mem_addtocart %} | |
{% if bold_rule.last== 'hide' %} | |
{% assign bold_hide_item = false %} | |
{% endif %} | |
{% if bold_rule.last == 'show' %} | |
{% assign bold_hide_item = true %} | |
{% assign bold_noaccess_snippet = 'bold-memberships-noaccess-' | append: bold_rule.first %} | |
{% endif %} | |
{% endfor %} | |
{% for bold_rule in product.metafields.bold_mem_addtocart %} | |
{% for customer_tag in customer.tags %} | |
{% if customer_tag == bold_rule.first %} | |
{% if bold_rule.last == 'hide' %} | |
{% assign bold_hide_item = true %} | |
{% assign bold_noaccess_snippet = 'bold-memberships-noaccess-' | append: customer_tag %} | |
{% endif %} | |
{% if bold_rule.last == 'show' %} | |
{% assign bold_hide_item = false %} | |
{% endif %} | |
{% endif %} | |
{% endfor %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment