Skip Navigation

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

Problem: Items in the cart are being deleted

Solution: This issue is happening because the WooCommerce products are created in secondary languages and there are no translations for them. The issue is resolved after the following steps.

1) Visit WooCommerce>>WooCommerce Multilingual>>Settings
2) Scroll down to the *Cart* section
3) Choose the *Prompt for a confirmation and reset the cart* option for *Switching languages when there are items in the cart*
4) Choose the *Prompt for a confirmation and reset the cart* option for *Switching currencies when there are items in the cart*
5) Save the changes

Relevant Documentation: https://wpml.org/forums/topic/items-in-the-cart-are-being-deleted/#post-14493585

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 5 replies, has 2 voices.

Last updated by Bigul 1 year, 1 month ago.

Assisted by: Bigul.

Author Posts
September 22, 2023 at 3:32 pm

ernestG-3

Items in the cart are being deleted

September 22, 2023 at 5:04 pm
September 25, 2023 at 1:47 pm #14459271

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

I made a copy of the site and continued the debugging in my local copy now. It looks like a compatibility issue. We will get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

September 28, 2023 at 8:57 am #14479953

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

The issue exists in our local copy after the primary troubleshooting steps. But it works when the Multicurrency feature is disabled. So please try the following steps after a backup and make sure the bug remains or not.

1) Visit WooCommerce>>WooCommercal Multilingual
2) Choose the *Multicurrency* tab
3) Disable the *Enable the multicurrency mode* option
4) Save the changes
5) Visit the frontend of the site
6) Added the products to the cart

It will help us a lot in debugging. Please let us know your feedback.

--
Thanks!

Bigul

September 29, 2023 at 5:45 am #14485431
ernestG-3

Hi Bigul,

I disable Multicurrency mode and the cart works.
Can you solve this issue?

Thanks for your support
Ernest

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/posts-listing-in-all-the-languages/

September 29, 2023 at 8:19 am #14486429

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi Ernest,

Thank you for the feedback. I shared the details with our team and waiting for their expert opinion now. We will get back to you as early as possible. Please wait.

--
Thanks!

Bigul

October 1, 2023 at 4:28 pm #14493585

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi Ernest,

Please check the attached images. I am getting the expected results in my local copy and your site after the following steps.

1) Visit WooCommerce>>WooCommerce Multilingual>>Settings
2) Scroll down to the *Cart* section
3) Choose the *Prompt for a confirmation and reset the cart* option for *Switching languages when there are items in the cart*
4) Choose the *Prompt for a confirmation and reset the cart* option for *Switching currencies when there are items in the cart*
5) Save the changes

Please check it and let us know your feedback.

--
Thanks!

Bigul

2023-10-01_21h16_07.png
2023-10-01_21h15_44.png