Skip to content

Instantly share code, notes, and snippets.

@jconnoll
Created September 21, 2011 00:26
Show Gist options
  • Save jconnoll/1230826 to your computer and use it in GitHub Desktop.
Save jconnoll/1230826 to your computer and use it in GitHub Desktop.
Shopify display Variant prices on Specific pricing Collections
{% 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