Skip to content

Instantly share code, notes, and snippets.

{% if product.metafields.inventory.ShappifySaleEndDate %}
<div id="shappify_count_down"></div>
<script type="text/javascript">
ShappifySaleEnds = new Date("{{ product.metafields.inventory.ShappifySaleEndDate | date: "%B %d, %Y %H:%M:%S"}}");
ShappifyToday = new Date("{{ 'now' | date: "%B %d, %Y %H:%M:%S"}}");
</script>
<script async type="text/javascript" src="//secure.apps.shappify.com/apps/discount/discount-sales-clock-js.php?shop={{ shop.permanent_domain }}"></script>
<link rel="stylesheet" type="text/css" href="//secure.apps.shappify.com/apps/discount/discount-sales-clock-css.php?shop={{ shop.permanent_domain }}" />
{% endif %}
<div style='display:none' id='shappify_custom_options_{{ product.id }}'></div><script async src="//secure.apps.shappify.com/apps/options/generate_options.php?shop={{shop.permanent_domain}}&product_id={{ product.id }}"></script>
<script>
$(window).load(function(){
if(typeof shappify_options_{{product.id}} !== "undefined"){
if(pojQuery("#shappify_custom_options_{{product.id}}").html() == ""){
shappify_options_{{product.id}}();
}
}
});
</script>
{%comment %}This snippet is generated and updated by Bold Memberships. any changes will be overridden when the Store Owner saves a Plan in the app.{%endcomment%}
{% assign bold_membership_partial_redirect = false %}
{% assign bold_membership_full_redirect = false %}
{% assign mem_current_template = template %}
{%if bold_membership_partial_redirect == true %}
<script>
{% 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 %}
{% comment %}This snippet is generated and updated by Bold Memberships.{% endcomment %}
{% assign bold_hide_item = false %}
{% assign bold_item_type = 'article'%}
{% for bold_rule in blog.metafields.bold_mem %}
{% 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 %}
{% comment %}This snippet is generated and updated by Bold Memberships.{% endcomment %}
{% assign bold_hide_item = false %}
{% assign bold_item_type = 'blog'%}
{% for bold_rule in blog.metafields.bold_mem %}
{% 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 %}
{% comment %}This snippet is generated and updated by Bold Memberships.{% endcomment %}
{% assign bold_hide_item = false %}
{% assign bold_item_type = 'collection'%}
{% for bold_rule in collection.metafields.bold_mem %}
{% 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 %}
{% comment %}This snippet is generated and updated by Bold Memberships.{% endcomment %}
{% assign bold_hide_item = false %}
{% assign bold_item_type = 'page'%}
{% for bold_rule in page.metafields.bold_mem %}
{% 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 %}
{% 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_price %}
{% 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 %}
{% comment %}This snippet is generated and updated by Bold Memberships.{% endcomment %}
{% assign bold_hide_item = false %}
{% assign bold_item_type = 'product'%}
{% for collection in product.collections %}
{% for bold_rule in collection.metafields.bold_mem %}
{% if bold_rule.last == 'hide' %}
{% assign bold_hide_item = false %}
{% endif %}
{% if bold_rule.last == 'show' %}
{% assign bold_hide_item = true %}