Hide sold-out product variants in the Shopify Prestige theme, either by removing them from selectors or clearly labeling them as sold out.
Initial attempts using a Shopify tutorial did not work. The store uses Prestige; a specific product URL was shared for context.
Proposed code (Popover selector): replace a loop in product-form.liquid to iterate product.variants and add CSS (button.hide_variant {display:none}). Multiple users report issues: not working on Shopify 2.0, no guidance for the “Block” selector, and the variant dropdown breaking after the CSS change.
Alternative code: add a conditional “soldout” class to swatch labels in product-form.liquid (using product.variants[forloop.index0].available == false), then hide or fade via CSS. Success not confirmed.
Non-code option: use an app. Camouflage was recommended and endorsed as working.
Key terms: variants (size/color options), swatch (visual option selector), selector types (Popover/Block), Shopify 2.0 (new theme architecture). Code snippets are central to understanding.
Outcome: No confirmed universal fix for Prestige. Open questions remain for Shopify 2.0 and Block selector support; a developer or an app may be the most reliable path.
Hello, I have been trying to accomplish this with the Prestige theme following your directions but I can’t seem to get it to work. Are the instructions different for Shopify 2.0? Also, is there a way to do this for the Block selector instead?
For the best results, you might want a developer to check your theme to add the required code to hide sold out variants on Prestige theme. For themes like Dawn, you probably can find code on GitHub. But nothing working is available for Prestige to the best of my knowledge. Check this similar post
If you are looking for an app based solution, you can try Camouflage