Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Ajax search pro not working on WPML different domains website
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 4 years, 11 months ago.
- June 13, 2018 at 6:00 pm #18255
We have important issues on french and spanish website. In the search bar (click on search icon) if I click to search any products I have 404 error or are related to italian websites.
Markforged mark two https://www.3dz.it/?post_type=products_items&p=49004
in the french website if I search jcr 1000 I found https://www.3dz.it/products/jcr-1000/
The italian website works good. But the other languages(french and spanish, you have the language selector on the top right to access the other websites), you will notice the search results are not leading to french or spanish websites, are going to 404 pages or italian results from the main website.
Your plugin is WPML compatible I am right? We want to achieve the results from each language to be products from that languages, so the search will not search through all languages.
JustinJune 13, 2018 at 9:02 pm #18258
Thank you very much for the proper details, it helped me a lot.
Yes, the plugin is WPML compatible, but for some reason the requested URLs were returned incorrectly. I am not sure why, but I managed to find a solution. I have placed a small custom code snippet to the functions.php file in your theme directory via FTP. I will look up the WPML support forums to see if I find anything similar, maybe there is a different solution as well.
The result URLs should be okay now.
For future reference, this is the custom code used:Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.