All things Shopify and commerce
Hi @saabbb1212 ,
To remove the "Sold Out" button for a variant that isn't a real product (such as a dietary question), you can customize your theme's code to hide the "Sold Out" button when the variant meets certain conditions, such as checking if it matches the dietary question.
Here's how you can do this in the Debut theme:
{% if current_variant.available == false %}
<button class="btn btn--sold-out" disabled>Sold Out</button>
{% endif %}
4. Add a Condition for Your Dietary Variant:
{% if current_variant.available == false and current_variant.title != 'Dietary Question' %}
<button class="btn btn--sold-out" disabled>Sold Out</button>
{% endif %}
5. Save the Changes:
This change will hide the "Sold Out" button only for the dietary variant, while keeping it visible for actual sold-out products.
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
@saabbb1212 if possible to share your store url so i will check and update you
@saabbb1212 thanks but i can't see any sold out product
Thankyou but I solved it 🙂
@saabbb1212 oh wow that would be great
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024