How can I show only selected product variant photos?

Topic summary

Goal: Limit the product image gallery to show only photos for the currently selected variant; currently all variant images remain visible. The poster asks if this requires splitting variants into separate products.

Key points from replies:

  • It is possible via custom JavaScript (theme-level scripting) to filter the gallery by selected variant; no built-in setting was provided.
  • Several respondents note it’s a complex customization and recommend hiring a developer.
  • One respondent requested the store URL (and password if applicable) to review and assist.

Status: No code samples or step-by-step solution were shared, and no decision was reached. Next steps suggested are to provide store details for review or engage a developer to implement the JavaScript-based approach.

Summarized with AI on January 21. AI used: gpt-5.

Hello,

My product has five variants, I would like the customer to view photos of ONLY this variant after selecting a variant. At the moment, the photo gallery is open and the user is viewing photos of the selected product and all other variants. Can it be limited? Do I have to add each variant as a separate product?

Hi @debesto

It can be done using the custom js code.

You can hire a developer for this.

Please let me know if you need any help from my end.

Hello @debesto ,

It is a complex task and you will definitely need a developer for that unless you are a technically aware person yourself.

If you need any assistance, please, don’t hesitate to drop me a line.

Best regards,
Anastasia

Hi @debesto

Would you mind sharing store URL and password if required?