Created
July 20, 2017 16:12
-
-
Save aatronco/1507891bb2b14762f0cba72aba4db93f to your computer and use it in GitHub Desktop.
Gets variant price searching for a variant value name
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
{% for variant in product.variants %} | |
{% for value in variant.values %} | |
{% if value.name == "Por Mayor" %} | |
{% assign precio_por_mayor = variant.price %} | |
{%endif%} | |
{%endfor%} | |
{%endfor%} | |
{{precio_por_mayor | price}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment