Developer forum

Forum » Swift » Variant color images

Variant color images

Tina Engelsen Pedersen


On our Swift demo site, i have tried to add variant color images to a product, to show different tree options. I added the image for both small, medium and large:

I switched around the two first if statements, as it would never move on to the second one if an image is set.

However, it does not show the images i have set on the color variants on the product page, but shows one of the product images instead. I can't seem to find documentation on how to get the variant option images correctly? 



You must be logged in to post in the forum