Select variants by clicking their images stopped working on Simple Theme

Topic summary

A store using Shopify’s Simple Theme reports that their custom code for selecting product variants by clicking images has suddenly stopped functioning. The feature previously allowed customers to click a variant image (e.g., an orange shirt) and automatically update the dropdown selector to match.

Key Details:

  • The issue occurred without any changes made by the store owner
  • The Simple Theme is no longer available in Shopify’s Theme Store
  • A JavaScript code snippet is provided showing the implementation (appears partially corrupted/reversed in the post)
  • The code creates variant image objects and updates variant selections based on image clicks

Current Status:

  • The store is developing a new theme but needs a temporary fix until launch
  • No solutions or responses have been provided yet
  • The discussion remains open with the original poster seeking troubleshooting assistance
Summarized with AI on November 16. AI used: claude-sonnet-4-5-20250929.

We are in the process of finishing up a new theme but was hoping for a quick fix on this until new one is ready to launch.