Skip Navigation

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

Problem:
The client needed to know if they should use the 'Store a language cookie to support language filtering for AJAX' option with their WPML setup that uses different languages in directories.
Solution:
We advised the client that it is necessary to keep the 'Store a language cookie to support language filtering for AJAX' option active, especially since their website is a WooCommerce site. This feature is crucial for various functions such as handling different currencies and add-to-cart functionalities. If you're experiencing similar concerns, we recommend that you ensure this option is checked.

For more details on enabling the language cookie for AJAX filtering, you can refer to our documentation here.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. Should you need further assistance, do not hesitate to open a new support ticket with us.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Marsel Nikolli 8 months, 3 weeks ago.

Assisted by: Marsel Nikolli.

Author Posts
April 15, 2024 at 9:56 am #15518807

hansN-10

Hello,

I have set WPML up with Different languages in directories (see attached screenshot #1).

Using this setup, do I need to use the function Store a language cookie to support language filtering for AJAX (described here: https://wpml.org/documentation/getting-started-guide/language-setup/enabling-language-cookie-to-support-ajax-filtering/ and also shown in screenshot #2)?

Or can I untick that box and not use the cookie?

Thank you!

1.PNG
2.PNG
April 15, 2024 at 10:16 am #15518950

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

Yes, you do need that option to be active (checked), your website is a WooCommerce website and it does need that option active to perform different functions such as different currency (if applied), add to cart functions, etc.

Let us know if you have further questions or need further assistance.

Kind regards,
Marsel

ajax.png
April 15, 2024 at 2:42 pm #15520881

hansN-10

Thank you very much!