Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou cannot access this content.
March 11, 2024 at 10:22 am in reply to: Show terms ( search settings ) in select2 o similar way not checkbox #47304Ernest Marcinko
KeymasterHi,
You can set it over here: https://i.imgur.com/BAHAcWh.png
Both the “Dropdown with search” and “Multiselect with search” use a select2 drop-down box.Ernest Marcinko
KeymasterSo would that issue be with my theme?
It’s not really an issue on either sides, menus are a bit of a gamble, as they are usually not desiged to hold custom made elements very well. They are made for simple text only.
In the upcoming release (4.26.6) there will be a bit of improvement – as I’m adding a dedicated Ajax Search Pro menu element. It’s under testing, but it should prevent most of the click/blur issues.I think you want to change it to the “right side” instead, and also reset the right margin to 0: https://i.imgur.com/n6lrGyq.png
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
March 11, 2024 at 9:51 am in reply to: Problem we have been facing when using REST API to FETCH result. #47300Ernest Marcinko
KeymasterHi Sena,
1. Make sure to add the search instance ID to the arguments: https://onlinemizoram.com/wp-json/ajax-search-pro/v0/woo_search?s=test&id=1
Here it’s set to 1, but in your case it’s probably different.The current v0 API does not support more arguments unfortunately. They will be added later when a more stable v1 is released in the future.
2. That is the image which Ajax Search Pro fetched for the live search results, it is always going to be a single image. If you need more images, you may have to either edit the source code on the API, or use a custom code to add more fields to the asp_data object, or pass on the product IDs to another endpoint to fetch the other images.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
March 11, 2024 at 9:16 am in reply to: Advanced Analytics and GDPR Compliance with Ajax Search Pro #47296Ernest Marcinko
KeymasterHi Ed,
Google Analytics if fully GDPR compliant if there is a proper cookie policy disclaimer implemented – which is needed by default anyways, as WordPress itself uses session cookies, and that has to be declared.
You can actually access the full keywords list if you have a phpMyAdmin or similar database access tool. In the database table wp_ajaxsearchpro_statistics all the previous keywords are stored, with the number of searches.
Another possibility is to use Matomo analytics, whic can be integrated as well, here is a knowledge base article on how to do that.
I’m not sure if there is a deeper way to integrate with Clarity, as it’s main purpose is heatmaps of user behavior. Using it should already include the search itself, there is probably a way to get the phrases typed into the input field as well. Unfortunately I’m not familiar with how it works.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
The first issue with the focus is caused by a 3rd party script, related to the menu controller. I guess the menu is not designed to expect more complex elements and it applies a custom click handler, which causes the problem.
Possible solutions to that is to either modify the menu script accordingly, so it does not do anything to the search input, or move the search out of a menu item scope, and move it next to the menu instead – that could also work.There is probably a way to fix it via custom code to turn off the event listeners. Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_action( 'wp_footer', function () { ?> <script> jQuery(function($){ jQuery('.asp_w_container').closest('.menu-item').off(); }); </script> <?php } );I can’t guarantee anything though, as this issue is not caused by the plugin.
As for the results alignment, you can change it here: https://i.imgur.com/hdgFo0f.png
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts