Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Exlcude variations from search results IF the variable/parent product is shown? › Reply To: Exlcude variations from search results IF the variable/parent product is shown?
I think I may have found a possible solution, at least it appears to be working on my local environment. You will have to replace one file in the search directory. If it works correctly, I will include this change in the upcoming release as well.
1. Before you start, make sure to have a site back-up, just in case.
2. Open up the wp-content\plugins\ajax-search-pro\includes\classes\search\class-asp-query.php file on your server
3. Replace it’s contents with this: asp-query.php
4. Save the file.
Do a test search, and hopefully the counter should be showing the correct amount now.Best,
If you like my products, don't forget to rate them on codecanyon :)