Created
September 21, 2011 00:26
-
-
Save jconnoll/1230826 to your computer and use it in GitHub Desktop.
Shopify display Variant prices on Specific pricing Collections
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
{% if collection.handle == "325-475" %} | |
{% for variant in product.variants %} | |
{% if variant.price >= 32500 and variant.price <= 47500 %} | |
<br><span class="collection-size">{{ variant.title }}</span> | |
<span class="collection-price">{{ variant.price | money }}</span></h4> | |
{% endif; %} | |
{% endfor %} | |
{% elsif collection.handle == "500-and-up" %} | |
{% for variant in product.variants %} | |
{% if variant.price >= 50000 %} | |
<br><span class="collection-size">{{ variant.title }}</span> | |
<span class="collection-price">{{ variant.price | money }}</span></h4> | |
{% endif; %} | |
{% endfor %} | |
{% elsif collection.handle == "175" %} | |
{% for variant in product.variants %} | |
{% if variant.price <= 175000 %} | |
<br><span class="collection-size">{{ variant.title }}</span> | |
<span class="collection-price">{{ variant.price | money }}</span></h4> | |
{% endif; %} | |
{% endfor %} | |
{% endif; %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment