change variant image on VARIANT attribute click dawn 11

damage
Tourist
8 0 2

 

Hi All,

Change variant image on attribute click Dawn 11 - Does anyone know the coding for this process, i have 2 variations in some of my products that when clicked i would like the variation picture to change to the desired corresponding variation photo. The variations are SIZE and LOGO. I have seen plenty of tutorials that uses the color variation and alt tags to achieve this but have not found one that works with 2 or more variations? 

Screenshot 2023-10-30 at 12.25.54 pm.png

Replies 2 (2)
damage
Tourist
8 0 2

Thanks for the quick reply. Please excuse the newbie questions below.

1. Is the product.liquid file you mention in step 1, the same as main-product.liquid?

2. Is there any specific line that the code in step 1 needs to be added to?

3.Step 2 - product-block.liquid, searching for this file shows no results - could it be called something else?

Thanks a lot

 

damage
Tourist
8 0 2

Thanks for the prompt reply again. I tried the above but unfortunately nothing happened?