how to remove 'sold out' button as I added dietary variant as question.its not a product.

Topic summary

Issue: Hide the “Sold Out” button for a variant used as a dietary question (i.e., not an actual product), so it doesn’t appear as out of stock.

Proposed solution (Debut theme):

  • Edit theme code: Online Store > Themes > Actions > Edit code.
  • In Sections, open product-template.liquid (or main-product.liquid).
  • Adjust the Sold Out logic to exclude the dietary variant, e.g.:
    {% if current_variant.available == false and current_variant.title != ‘Dietary Question’ %}
    …button code…
    {% endif %}
  • This keeps the button for genuinely sold-out products but hides it for the dietary-question variant.

Context/terms:

  • “Variant” = a product option (e.g., choices like size; here used as a question).
  • Debut is a Shopify theme; file names may vary by theme version.

Follow-up: A participant requested the store URL to verify; the OP shared URLs, but the helper couldn’t see any sold-out product.

Outcome: The OP reported the issue is solved. No unresolved questions; no final code snippet from the OP provided.

Summarized with AI on December 16. AI used: gpt-5.

284042-80.myshopify.com. is it that or wellnessdogco.nz

1 Like