Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Out of Stock items not appearing in search results › Reply To: Out of Stock items not appearing in search results
Thank you!
I think I found the issue, and a possible solution as well.
The problem was not the stock status, but the price. The out of stock items had no price set, while there is a price filter in use – so they got automatically filtered from the live results.
My solution was to create a ‘hidden’ filter on the stock status: https://i.imgur.com/M9x7oF2.png
.. and to set the custom field logic to OR: https://i.imgur.com/1hx3V0e.png
This means that either the price field must match, or either the item must be out of stock for it to match. I believe this should do the trick. Now when I search for an out of stock item, like ‘9009A’, it is returned as expected: https://i.imgur.com/KUnxtMd.jpg
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)