Skip to content

Instantly share code, notes, and snippets.

@seedcms
Created February 4, 2017 05:38
Show Gist options
  • Save seedcms/5c7589b344404117d889d449b08fdff6 to your computer and use it in GitHub Desktop.
Save seedcms/5c7589b344404117d889d449b08fdff6 to your computer and use it in GitHub Desktop.
Multiple Levels 4
{% for discount in item.discounts %} //checks for items discounted in script
//original price
{% if customer.tags contains 'Industry' or customer.tags contains 'Pro' or customer.tags contains 'Tier2' or customer.tags contains 'Tier1'%}
<div class="cart-item__original-price"><del>{{ item.original_line_price | money }}</del></div>
{% endif %}
{% endfor %}
//new price after script runs
<div>
{{ item.line_price | money }}
</div>
//message built into script
{% for discount in item.discounts %}
<div class="cart-item__discount">{{ discount.title }}</div>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment