{% if product.variants.size > 1 %}
{% endif %}
{% if product.variants.size > 1 %}
{% endif %}
{% if product.variants.size > 1 %}
{% endif %}
add js for variant selection
{{ ‘option_selection.js’ | shopify_asset_url | script_tag }}
{% if product.variants.size > 1 %}
{% endif %}
Hi, where do you have to past that in order to change the image, when changing the (color) variant?
Hi,
This code would not work if you have a slider or carousel. Anyways. I was able to obtain this with no APP or external library.
If you have Dawn theme or Any Shopify 2.0 FREE themes, this should work. No APPs or EXTERNAL library needed. The code is made to call and listens all the variant options related images. You can have multiple variants options. Works with the Dawn product settings too, that includes thumbnail carousel and even the media size settings.
See video for more information.