How do I show different images for each variant?
Show only the selected variant's images in the product gallery.
Poetic can show only the images that belong to the selected variant. For example, when a customer picks "Blue", the gallery shows only the blue photos. You set this up with a variant metafield and one setting in the theme editor.
1. Create the variant metafield
In your Shopify admin, go to Settings > Custom data > Variants.
Click Add definition.
Give it a name, such as "Variant images". Set the namespace and key to
custom.variant_images.For the type, choose File, select List of files, and limit it to images.
Click Save.
2. Assign images to each variant
Open the product and upload all its images to the product's Media first.
Open each variant, find the Variant images metafield and select that variant's images.
Use the same images for every variant of a color (for example, all sizes of "Blue").
3. Turn it on in the theme editor
Open a product template, click the Product information section and find Variant image groups:
Group media by variant: Turn on to show only the selected variant's images.
Variant metafield: Leave it as
custom.variant_images, or enter the namespace and key you used.Show unassigned media: Images that aren't assigned to any variant show for every variant.
If a variant has no group: What to show for variants with no images assigned. Options: Show all media or Show only shared media.
See Product information for the other gallery settings.