App reviews, troubleshooting, and recommendations
Hi!
it would be very nice if someone could tell me how to hide sold out products within the shopify search.
i could just archivate every sold out product but then they also disappear from the customer order histories.
ive already searched the forums and found this tip:
https://www.huratips.com/tech-tips/how-to-hide-sold-out-products-from-search-results-in-shopify.html
1 2 3 4 5 | {% for item in search.results %} {% if item.object_type == 'product' and item.available == true %} ... {% endif %} {% endfor %} |
But i cant find this code in my custom porto theme.
I would really appreciate a helping hand 🙂
Have a nice day and take care
Phil
when my product is out of stock I would click the product from my shopify account and changed it to draft from active, you can look up the “active”button and just change it to “draft”.
Setting products to draft or archiving them hides them from the store thats correct but not a solution because they also get hidden/deleted from the customer order histories leaving not clickable links witout an image. An thats what i dont want. i only want out of stock to be hidden in search.😞
Oooh I didn’t know that, sorry. I just made the store a few days ago.
Help would really be appreciated 🙂
Hi @PB79
Would it be easier to make the code change in theme if products that are out of stock have a specific tag?
This app Delist Automation can help with that, set a delist rule to unpublish products which removes the product from stores but doesn't archive/delete it.
First install the Search & Discovery App in Shopify.
Search & Discovery App > App Settings > Out of stock products > Select 'Not at all'
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024