Liquid, JavaScript, themes, sales channels
I'm in the process of building a new theme and I've come across a snag!
I've built a filter system using product tags and I simply want to stop out of stock items showing in my collections.
I've installed an app that reorders my collections so that my out of stock items are last, this works fine, but it's not perfect.
I know I can use the query filter.v.availability=1, however as soon as I go into a product tag, i.e. /collections/watches/mens, that query will no longer work!
I feel like I'm missing something really really basic here! Is there no way to set out of stock items to simply not display by default? Is there an app which will handle this well?
Hi @Vinnydude
would you mind checking our app Nada: Sort & Hide Out Of Stock?
The app is automatically hiding sold-out products and sets a redirect to the homepage or any other page. Once the product is back in stock, it's published again and the redirect is removed. Like this, you are not being penalized on SEO as the visitors never get to the 404 page.
Try it for free for 7 days and check if it helps to solve your problem.
Martin
Hi Martin,
Thanks for taking the time to message.
If you could explain how you would do it, that would be great!
My issue is that the filter won't work once you break away from a collection into a tag, i.e /collections/watches/*a product tag*
If there is a way around this, that would be great!
I have managed to find an app that will hide them, but as I've managed to build the entire store without needing to rely on an app up until this point, it has left a bitter taste in my mouth!!!
User | RANK |
---|---|
24 | |
23 | |
12 | |
9 | |
8 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023