Dies ist das technische Support-Forum für WPML - das mehrsprachige WordPress-Plugin.

Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team beantwortet Anfragen im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.

This topic contains 1 Antwort, has 2 Teilnehmer.

Last updated by Bruno Kos vor 1 Monat, 2 Wochen.

Assigned support staff: Bruno Kos.

Author Artikel
April 10, 2020 um 9:15 am #5882507

julianH-19

I try to add a product to the cart with AJAX. This works in the original language (german). It does not work on the english page.

I followed the advice in this thread and enabled "Language filtering for AJAX operations" in WPML: hidden link

However, the problem still persists. I can see that a language cookie is set, but the language code is still "de" even though I visited the english site. (see cookie-problem.png)

When I change the language code to english ("en") manually via the developer tools, the problem does not occur.

Can you tell me why the language code in the cookie is not updated, when I change to the english version of my site?

April 10, 2020 um 9:26 am #5882561

Bruno Kos
Supporter

Languages: Englisch (English )

Timezone: Europe/Zagreb (GMT+02:00)

(working on it on the chat)