Reply To: Out of Stock items not appearing in search results

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

#12979

Ernest Marcinko
Keymaster

Hi Tom,

Yes, that is actually correct. It was a planned feature, which I accidentally had left activated for this release, without implementing a switch to turn it off.

To fix it, you will have to make a tiny change to one of the plugin files. Below I will describe exactly how to do it, but if you want, you can leave FTP access here, and I will do it for you.

– Before you start, please make sure you have a copy of your site files, to be able to restore in case of mistakes.
– Then open up the wp-content\plugins\ajax-search-pro\includes\classes\search\class-asp-query.php
– Scroll to line 384, which should be this:

if ( class_exists( 'WooCommerce' ) ) {

– Change that to this:

if ( class_exists( 'WooCommerce' )  && 0) {

– Save the file, and it's done.

After the change, it should start working immediately.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)