Inherited Theme Changing Variants Isn't Changing Product Photos




I have inherited a theme for a client from another developer and it is a bit of a mess so I am having trouble tracking down exactly what went wrong to cause this bug.


Traditionally, when you add different product images for different variants of the product, when the user selects those different variants on the shop page the product image changes so they can see what each variant looks like.


For some reason this doesn't seem to be working on this theme and I can't figure out why. Can you guys provide any insight into how I might be able to restore this functionality?


You can see an example here: