Created
February 4, 2017 05:38
-
-
Save seedcms/5c7589b344404117d889d449b08fdff6 to your computer and use it in GitHub Desktop.
Multiple Levels 4
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
{% 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