Hi everyone,
I’m currently working on a Shopify storefront using Flex and I’m looking for some help with changing the way that product images are displayed. Right now, when a customer selects a product, they can see all of the available images for that product, regardless of which variant they have selected.
I would like to change this so that only the images that are related to the selected variant are displayed. For example, if a customer selects a t-shirt in size medium, I only want the images that show the t-shirt in size medium to be displayed.
I’ve looked into the Liquid code for the product page, but I’m not sure where to start with making this change. If anyone has experience with this type of modification or knows of any resources that could help, I would greatly appreciate it!