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
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:
[php]if ( class_exists( ‘WooCommerce’ ) ) {[/php]
– Change that to this:
[php]if ( class_exists( ‘WooCommerce’ ) && 0) {[/php]
– Save the file, and it’s done.
After the change, it should start working immediately.