Created
September 23, 2019 17:50
-
-
Save walkirien/966be608ab76c2b67766db2eab3fd053 to your computer and use it in GitHub Desktop.
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
{%assign min_price = product.price %} | |
{%assign max_price = product.price %} | |
{% for variant in product.variants %} | |
{% if max_price < variant.price %} | |
{%assign max_price = variant.price %} | |
{% endif %} | |
{% if min_price > variant.price %} | |
{%assign min_price = variant.price %} | |
{% endif %} | |
{%endfor%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment