Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Hidden product still showing up in results
- This topic has 10 replies, 2 voices, and was last updated 3 years, 2 months ago by
Ernest Marcinko.
-
AuthorPosts
-
February 13, 2023 at 3:23 pm #41341
rienco
ParticipantWhen we are searching for a hidden product (product is active, but in settings it is marked as do not show in search results), it still shows up. For example, if you’re looking for “Tweede Veldwerk workshop gratis”.
Also, when hitting “enter” after searching, the product shows up: https://hetnoorderlicht.com/?s=tweede+veldwerk&asp_active=1&p_asid=1&p_asp_data=1&customset%5B%5D=instituut&customset%5B%5D=professional&customset%5B%5D=page&customset%5B%5D=post&customset%5B%5D=product&asp_gen%5B%5D=excerpt&asp_gen%5B%5D=content&asp_gen%5B%5D=title&filters_initial=1&filters_changed=0&qtranslate_lang=0&woo_currency=EUR¤t_page_id=11270But, if we change the url a bit, it works fine: https://hetnoorderlicht.com/?s=tweede+veldwerk&asp_active=1&p_asp_data=1&customset%5B%5D=instituut&customset%5B%5D=professional&customset%5B%5D=page&customset%5B%5D=post&customset%5B%5D=product&asp_gen%5B%5D=excerpt&asp_gen%5B%5D=content&asp_gen%5B%5D=title&filters_initial=1&filters_changed=0&qtranslate_lang=0&woo_currency=EUR¤t_page_id=11270
Could you please take a look?
February 14, 2023 at 1:49 pm #41355Ernest Marcinko
KeymasterHi,
Sure! I tried to login with the details, but it says that the account name does not exist. Can you please check that?
The different in the two URLs is, that the search ID is specified, so in the second case the 1st search bar is used for the override on the WooCommerce results page. On the second example either the designated or the default search is triggered. Try choosin the first search form for the search form override here. In that case, when the results page URL is triggered without the search ID, the default configuration will apply from that search bar either way.
February 14, 2023 at 3:13 pm #41359rienco
ParticipantYou cannot access this content.
February 14, 2023 at 3:58 pm #41365Ernest Marcinko
KeymasterYou cannot access this content.
February 15, 2023 at 9:09 am #41385rienco
ParticipantAwesome, that did the job!
Ik got a error message yesterday evening coming from your plugin:
Een fout van het type E_ERROR werd veroorzaakt op regelnummer 121 van het bestand /**/private_html/wp-content/plugins/ajax-search-pro/includes/classes/etc/indextable.class.php. Foutmelding: Uncaught Error: Failed opening required '/**/private_html/wp-content/plugins/ajax-search-pro//includes/classes/etc/synonyms.class.php' (include_path='.:/usr/local/php81/lib/php') in /**/private_html/wp-content/plugins/ajax-search-pro/includes/classes/etc/indextable.class.php:121 Stack trace: #0 /**/private_html/wp-content/plugins/ajax-search-pro/includes/classes/actions/class-asp-indextable.php(118): asp_indexTable->__construct() #1 /**/private_html/wp-includes/class-wp-hook.php(310): WD_ASP_IndexTable_Action->delete() #2 /**/private_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #3 /**/private_html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /**/private_html/wp-includes/post.php(6444): do_action() #5 /**/private_html/wp-admin/includes/class-file-upload-upgrader.php(126): wp_delete_attachment() #6 /**/private_html/wp-admin/update.php(179): File_Upload_Upgrader->cleanup() #7 {main} thrownIs there anything we can do?
February 15, 2023 at 11:22 am #41388Ernest Marcinko
KeymasterIt was very likely due to the debugging I did during the testing, the error should not occur again. Let me know if it does by any chance, luckily it does not look anything serious, it only reports one specific hook not firing in time.
I will keep this topic open for a while, in case the error comes back.
If you like the plugin and have not rated already, feel free to leave a rating on your codecanyon downloads page and on the wordpress plugin repository, it’s greatly appreciated.
March 7, 2023 at 3:16 pm #41666rienco
ParticipantYou cannot access this content.
March 8, 2023 at 11:35 am #41675rienco
ParticipantWe’re facing also some (huge) performance issues during autocomplete. Could you please do a quick checkup to our settings? Thanks!
March 8, 2023 at 2:34 pm #41678Ernest Marcinko
KeymasterGenerally combining multiple search/exclusions plugins may not work with each other – one may not pick up exclusions from others, it is not possible to design them like that.
You can exclude the same items within ajax search pro too, via the exclusion options. They will not show up afterwards.
There is also an issue within all of the page and ajax requests – I see a custom code injected to each request, as you can see here: https://i.imgur.com/eP4O8lV.png
It is directly printed into every output – it is probably an incorrectly added as a custom code somewhere. I strongly recommend checking and removing that, it will have an impact on your overall site performance.I checked the configuration, and the index table engine was not enabled. After turning it on, the pefromance greatly improved from around 7 seconds to a 2 second response time. That seems to be very nice given the overall page responses and generic ajax response are around 10 seconds.
March 8, 2023 at 3:01 pm #41680rienco
ParticipantThanks Ernest, you’re the best!
March 8, 2023 at 4:31 pm #41685Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.