Skip Navigation

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

Problem:
The client reported an issue where a visitor (not logged in) adds a translated product to the cart, but the default language product is added instead. This problem occurred after making changes to the visibility of the English language and the product translation settings in a Woodmart theme environment.

Solution:
We resolved the issue by enabling the "Language filtering for AJAX operations" option in WPML > Languages. This solution worked for both logged-in and logged-out users, ensuring that the correct language product is added to the cart. We confirmed that enabling this option should not cause any performance issues, so no further troubleshooting is necessary.

If this solution doesn't look relevant to your situation, please 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.

Tagged: 

This topic contains 20 replies, has 2 voices.

Last updated by Kor 1 year ago.

Assisted by: Kor.

Author Posts
November 16, 2023 at 4:58 pm #14829457

nikolaosM

Hello,

We found out that if we enable Language filtering for AJAX operations option in WPML - > Languages the issue is solved. We would like to know what this option does and if enabling it causes our site to slow down.

Thanks!

November 16, 2023 at 5:03 pm #14829465

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for responding.

I'm pleased to hear that you've resolved the issue. I will now update our 2nd Tier Support team with the information you've provided. You can refer to this section of the documentation, which explains the functionality: https://wpml.org/documentation/getting-started-guide/language-setup/enabling-language-cookie-to-support-ajax-filtering/ . Additionally, enabling this option should not adversely affect the performance of your website.

November 17, 2023 at 12:51 pm #14862775

nikolaosM

Ok we will wait to see the support team responce and then mark this as solved.

November 17, 2023 at 1:41 pm #14863169

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for getting back to us.

I apologize for any confusion. Since you've indicated that the problem has been resolved by enabling the "Language filtering for AJAX operations" option in WPML > Languages, we consider the matter closed. Is there any additional information or assistance you are seeking from our 2nd Tier Support team?

November 20, 2023 at 1:00 pm #14876923

nikolaosM

Ok, I can understand that but how can you expalin the fact that that we found the solution on our own by chance, just by checking and unchecking options and you, a wpml supporter, were not able to find this out yourself since you were given permition to trubleshoot in a demo site? Why did we have to wait all this days for this?

November 20, 2023 at 3:07 pm #14878745

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

I want to extend my apologies once again for the oversight. I acknowledge that I overlooked that option in WPML. It's intriguing that it works correctly when logged in but not when logged out, unless you enable the "Language filtering for AJAX operations" option.

I have already submitted a report to our second-tier support team for investigation. However, since the problem has been resolved by enabling the "Language filtering for AJAX operations" option, the report has been closed. Additionally, enabling this option should not introduce any performance issues, so there's no need for further troubleshooting.

If you have any additional concerns or issues that require attention, please don't hesitate to let me know, and I will create a separate ticket to ensure they are addressed properly.