Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 3 replies, has 3 voices.

Last updated by Mateus Getulio 1 year, 2 months ago.

Assisted by: Mateus Getulio.

Author Posts
April 5, 2024 at 8:02 am #15486584

tomasM-28

Hello, I have 4 languages and 3 currencies on my ebabo.sk page. For example, when I am in Slovak language and I add something to my cart and then I change the language, my cart is completely cleared. I have updated all plugins, checked the cart page to see if it is translated in all languages and even in the WooCommerce Multilingual & Multicurrency plugin settings I have enabled "Synchronize cart content when switching languages" but the error remains.

Screenshot 2024-04-05 at 09.56.10.png
April 5, 2024 at 9:25 am #15487109

Dražen
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.

As our docs say depending on the additional complexity of your products, this might not work correctly so it is better to use the option to clear the cart.

This is why WooCommerce Multilingual allows you to decide what happens when users switch the language or the currency. Basically, if you notice that your product options and data is not synchronizing correctly when switching languages or currency, you should set the option to clear the cart contents when this happens.

- https://wpml.org/documentation/related-projects/woocommerce-multilingual/clearing-cart-contents-when-language-or-currency-change/

Let us know if any further questions.

Regards,
Drazen

April 8, 2024 at 6:36 am #15492563

tomasM-28

Hi, even after changing the setting to "Prompt for a confirmation and reset the cart" my problem has not been solved and is still the same. For example, when I am in Slovak language and I add something to my cart and then change the language, I don't even get a popup with confirmation if I want to change the language, but it redirects me straight to another language and my cart is empty.

Screenshot 2024-04-08 at 08.36.13.png
April 8, 2024 at 11:48 am #15493963

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I can see you're using the method 'a different domain per language' in WPML -> Language. Please return the option to 'synchronize cart content when switching languages'.

On the WPML -> Languages page, under the Language URL Format section, you can find the Pass session arguments between domains through the language switcher option. It synchronizes this session data among domains and languages.

https://wpml.org/documentation/getting-started-guide/language-setup/passing-session-data-between-languages-in-domains/

Can you try changing these options to the 3 available, resave permalinks, clear the cache and try this again?

If it still doesn't work, just as a temporarily test, can you also try briefly changing to language in directories and see if it works now? Perhaps it is not only about domains, but maybe something else is not working.

Thank you, please let us know.
Mateus

The topic ‘[Closed] Remove items from cart after language change’ is closed to new replies.