Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi there, I am looking to display Product Variant Images on my Product Page, I have tried various ways to do this and thought using metafields would be the best way, however I am struggling to figure out how to implement this variant image metafield.
I am using the most recent Dawn Theme (v. 11). I have set up a Variant Metafield to include a list of multiple files (images). I would like to display these on the product page and update the images whenever a different variant swatch is selected. I understand I will need to add javascript. I am comfortable updating the code myself. I have found solutions for product metafields and variant text metafields but none for variant images.
For reference my metafield is: variant.metafields.custom.variation_img
Please help :')
PS - not interested in using an app, cheers
Solved! Go to the solution
This is an accepted solution.
If anyone finds this looking for a solution and doesn't see my other post, I worked out a solution myself here: https://community.shopify.com/c/shopify-design/display-variant-metafield-list-of-multiple-files-imag...
This is an accepted solution.
If anyone finds this looking for a solution and doesn't see my other post, I worked out a solution myself here: https://community.shopify.com/c/shopify-design/display-variant-metafield-list-of-multiple-files-imag...