All things Shopify and commerce
Hi everyone,
I just want to ask if there is a way that we can hide sold-out variants of a selected collections only.
hope you can help me. thank you.
Solved! Go to the solution
This is an accepted solution.
Hey @Macoy102890
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
{% for c in product.collections %}
{% if c.handle == "beyond-sight" %}
<style>
.color-swatch.is-disabled {
display: none !important;
}
</style>
{% endif %}
{% endfor %}
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hey @Macoy102890
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.color-swatch.is-disabled {
display: none !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi Mooed. thank you for your response, May I ask If I can apply this in a specific collection. thank you
Can you send me the link of the collection on which you want this code to work on only?
Best Regards,
Moeed
This is an accepted solution.
Hey @Macoy102890
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
{% for c in product.collections %}
{% if c.handle == "beyond-sight" %}
<style>
.color-swatch.is-disabled {
display: none !important;
}
</style>
{% endif %}
{% endfor %}
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank you Moeed... you're awsome!!👊
Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024