Skip Navigation

[Resolved] Parametric search not working if using separate domains per language in WPML

This thread is resolved. Here is a description of the problem and solution.

Problem: When I choose the WPML configuration to use separate domains for each language, my AJAX parametric search forms do not work as expected.

Solution: Check the WPML documentation for information about setting an AJAX language cookie.

Relevant Documentation: https://wpml.org/documentation/getting-started-guide/language-setup/enabling-language-cookie-to-support-ajax-filtering/

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by jozsefG 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#624621

I wanted to have a CPT archive with custom taxonomy as filters. It was just not working. I spent a whole day until I realised it is because WPML is set to use separete domains for every language. When I changed it to langages per directories it started to work.
Is this a bug? Is there a workaround so I can use separate domains and have parametric search working too?

#624739

Hi, is your custom search View updated with AJAX, or with a full page reload? If it's AJAX, can you try to temporarily disable AJAX updates and see if the problem is resolved? If the problem is resolved with AJAX disabled, please see the post about setting an AJAX language cookie here: https://wpml.org/documentation/getting-started-guide/language-setup/enabling-language-cookie-to-support-ajax-filtering/

Let me know how it goes.

#624875

Thank you Christian!

It worked without Ajax, and setting the language cookie solved it in Ajax too.