Hide out of stock products and don't count them

New Member
3 0 0

I have managed to hide out of stock products on most of my site by using {% if product.available %} in the product-grid-item.liquid as well as search results. However my site is still counting out of stock products in categories and search results.

 

Example Here 

 

Is there a better way to hide out of stock products without using collection conditions as we have most of our collections to check multiple conditions? Any help would be appreciated. 

0 Likes

Hello 
The link you have share above is having 1 product available.
Can you please share product that are out of stock.
So that i can check and hide out of stock product.

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes
New Member
3 0 0

Thanks for getting in touch. Here is a link to an out of stock product. They are excluded from collections and search results. What i need to accomplish is for them not to be counted in pagination area.

 

problem1.PNG

https://highroadrecords.ca/products/101ersfeatstrummerjoe-elginavenuebreakdownrevisited2lpltdedredvi... 

 

0 Likes