Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi,
I’m afraid that type of setup (mutliple search fields on single search) is not possible. You could however use taxonomy and custom field filters. The “Dropdown/select with search” filter type is very close to what you may want.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterWell, it is not the most secure, but it will do.
Please make sure to have a full site back-up so you can revert back in case anything goes wrong during the file editing. Let me know if you have one and I will try via that plugin.
Ernest Marcinko
KeymasterHi,
Thank you for the details!
If the regular results page shows the variation and the WooCoomerce results page does not, then it is very likely that it still does not allow it or somewhere along the way the plugins conflict, that is also possible.
I have tried to log-in with the details, but the username/password is not accepted, can you please check that?
Can you also please add temporary FTP details? I will try to figure out where the product variation parameter goes missing via editing the code.
Ernest Marcinko
KeymasterYou cannot access this content.
November 6, 2023 at 10:48 am in reply to: Run AjaxSeachPro On An Independent Server for App Access #45908Ernest Marcinko
KeymasterI’m not a python coder myself, but I found this tutorial, which is exactly what you need. That seems to explain how to fetch data via python from a web service.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
1. It depends on how or where this is setup exactly. If you are referencing the results page or an archive page here, then I suggest trying the results page live loading feature.
2. I’m afraid it is not documented, but you can get them very easily via the developer tools on your browser. Just in case, here is a screenshot of how exactly it is constructed. The actual checkbox is not visible (because it is not possible to style), but there is an overlaying element, which is displayed based on the checkbox state:
.asp_option_checkbox:after { opacity: 0; }and
.asp_option_inner input[type=checkbox]:checked~div:after { opacity: 1; }Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterTry to open the admin dashboard in “All languages”: https://i.imgur.com/hZT0s5K.png
With that I think WPML should allow excluding categories from other languages as well.November 2, 2023 at 1:41 pm in reply to: 3 questions: author field, layout organization, and more! #45886Ernest Marcinko
KeymasterI’m afraid that is not possible at the moment. This was however requested a few times, so I have added it to the issue tracker. Sooner or later we will figure out something for this. The main issue is that the results suggestions itself need to run a request to the back-end, and doing another one could lead to potential major performance issues on low-end servers, but I think I can resolve that too.
Ernest Marcinko
KeymasterSure – if you turn it on, then it will automatically filter items which do not belong to the current language. That will not affect the code itself, it will still convert the URLs if not the default site language is detected.
Ernest Marcinko
KeymasterThanks!
I think I have a solution for you. I have placed the following custom code to the functions.php file in the avada-child theme directory:
add_filter( 'asp_results', 'asp_change_lang_on_wpml', 10, 4 ); function asp_change_lang_on_wpml( $results, $search_id, $is_ajax, $args ) { global $sitepress; // Let us get the default site language if possible if ( is_object($sitepress) && method_exists($sitepress, 'get_default_language') ) { $site_lang_selected = $sitepress->get_default_language() == $args['_wpml_lang']; } $lang = $args['_wpml_lang']; var_dump($site_lang_selected); if ( !$site_lang_selected ) { foreach ($results as $k=>&$r) { if ( isset($r->post_type) && $r->post_type == $post_type ) { //$r->link = str_replace("/product/", "/product/".$lang."/", $r->link); $r->link = apply_filters('wpml_permalink', $r->link, $args['_wpml_lang'], true); } } } return $results; }So right now when I test on the english, I only get english or the ones that should show on both, with english URL. For the german, I turned off the compatibility (search ID=2) and now shows everything, and the URLS are corrected via the code.
-
AuthorPosts