Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
The WooCommerce sorting selector should work all right, the plugin queries those parameters and takes them into account when searching.
Ernest Marcinko
KeymasterHi Tom,
I think your query is missing the search ID argument – so that way only a generic configuration search is executed (on posts and pages).
Try this: https://dev2.streamee.gr/wp-json/ajax-search-pro/v0/search?s=greek&id=1
That will trigger the search ID to fetch the configuration from.
Ernest Marcinko
KeymasterOkay – Now at least I can see the settings element on the page, but there are no filters in it.
Can you please check if you have any filters added? Try adding a few for testing to see if that works. Currently there is nothing within the filter section on the front-end, so it seems as if it was invisible.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterOkay – so it is the missing translations causing the issue here.
It is sort of hard coded to the query, but I could potentially suggest a modification to exclude these translations from the query, and maybe add a hook point to a future release to avoid that.
Can you provide temporary FTP access?
If not then please follow these steps:
– Open up the\wp-content\plugins\ajax-search-pro\includes\classes\Search\SearchPostTypes.phpfile on the server
– Find the line (around 277):
if ($site_lang_selected) {
– Change it to:
if ($args['_wpml_allow_missing_translations'] && $site_lang_selected) {
– Save the fileDo the same steps for:
–\wp-content\plugins\ajax-search-pro\includes\classes\Search\SearchIndex.phpfile on the server
– Find the line (around 168):
if ($site_lang_selected) {
– Change it to:
if ($args['_wpml_allow_missing_translations'] && $site_lang_selected) {
– Save the fileAfter the change, a custom code is required to exclicitly set the allowance. 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_filter( 'asp_query_args', 'asp_query_args_change', 10, 1 ); function asp_query_args_change( $args ) { $args['_wpml_allow_missing_translations'] = false; return $args; }This will prevent missing translations from each language as well as will retain in any future versions as if this works, then I will append it to the next upcoming version.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts