By default, Shopify themes typically display product media based on a single variant option, such as Color.
Athora's Product Group Media feature lets you display different images or videos based on multiple variant options, such as Color + Size or Color + Size + Fabric.
No image alt text configuration required
No additional SEO impact
Works across all store languages without additional configuration
Go to:
Settings → Metafields and metaobjects → Metafield definitions → Products → Add definition
Create the metafield with the following settings:
Name: Product group media
Namespace and key: theme.group_media_obj
Type: JSON
Click Save.
Go to:
Theme Customize → Products → only_config_group_media
Click Preview.
Select the product you want to configure.
Select the variant option(s) you want to use for grouping media.

You can combine up to 3 options, such as:
Color
Size
Fabric
For each image or video, select how it should be displayed:
Specific variant value: Choose the variant value that you want the image to be grouped with.
Example: Alabaster, Dark Olive, 20×20, or 12×21.
* — The media is displayed for all values of the selected option.
Example: If the selected option is Color, using * displays the media for all colors.

After configuring the media:
Click COPY CODE.
Open the configured product.

Click the Edit (pencil) icon.
Scroll to the Product group media metafield.
Paste the copied code.
Click Save.

For a complete overview of the setup, see the guide below:
You will follow option is enabled: Product page → Media → Show first media
When enabled, the theme always displays the first product media, regardless of the selected variant. So you will disable Show first media to display the correct variant image.
You can combine up to 3 options (e.g. Color – Size – Fabric).
This is due to Shopify’s limitation:
Maximum 3 product options
Maximum 2,048 variants per product
As a result, Product Group Media can only be configured within these limits.
Besides the product page, Product Group Media also works on:
Quick view
Featured product section