Update product image after variant change

Topic summary

A developer is experiencing issues with product image updates when variant selections change in a custom-coded bundle on their Shopify store.

Current Situation:

  • Images fail to update despite variant changes
  • Debug messages indicate the code is executing correctly and images should be changing
  • The problem occurs on a specific product page (cartoon carpets)

Technical Details:

  • Custom code implementation shared via Codeshare link
  • Screenshot provided showing the issue in action

Status: The issue remains unresolved with no responses yet. The developer needs help identifying why the image update logic isn’t working despite debug confirmation that the code is running as expected.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Hello, I’m trying to update my product image after variant change within my self coded bundle, but I’m changing it and nothing is happening. I got this code: Feb 02 11:45 AM - Codeshare. The debug messages show as like the image should have changed. Store URL: Fun & Cozy Cartoon Carpets for Home & Kids’ Rooms – InteriorGlows