Hide sold out variant images in Debut theme

Topic summary

A store owner wants sold-out product variants (e.g., size/color options) to be immediately hidden or deleted in the Shopify Debut theme, including their thumbnail images. They previously found a Power Tools app that deletes sold-out variants but runs on a schedule and has a problematic dashboard; they need instant action.

Key updates:

  • It’s feasible to hide unavailable variant options and their images directly on the product page without using an app, via theme code (JavaScript/CSS). JS = JavaScript; Debut is Shopify’s default theme.
  • Deleting variants cannot be done with JavaScript; an app or backend process is required, typically not instantaneous.

Open items:

  • Specific implementation steps for hiding sold-out variants were requested (“How?”) but not provided yet.

Status: No resolution yet; guidance on the exact code or method to hide variants in Debut is pending.

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

When a variant sells out, I’d like for its thumbnail image to be hidden (or the variant itself to be immediately deleted). I did see an app from Power Tools that claimed to delete sold out variants but the dashboard was wonky and it seemed to run on a regular schedule. I need the variant to be hidden or deleted immediately after it sells out.

Is either possible?

Yes, it is possible to hide the unavailable variant options on the product page and their images also without any app but deleting them is not possible using JS codes for this app will be required.

Thanks

How?