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

Last updated by Rob Coers 5 months, 2 weeks ago.

Assigned support staff: Mihai Apetrei.

Author Posts
May 2, 2019 at 2:45 pm #3725755

Rob Coers

I am trying to: switch language during checkout process

Link to a page where the issue can be seen: hidden link

I expected to see: a working translation

Instead, I got: empty cart

I explain and demonstrate it here in this screencast:
hidden link

May 2, 2019 at 4:32 pm #3726961

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi and thank you for contacting WPML Support!

I will be happy to help you with this.

The main reason for this issue might be the fact that you don't have the events/products translated in both languages.

There have been a few other tickets where clients were reporting this behavior and it seems that what was causing that was the fact that the products were not translated in the language that the client was switching to, while having existing products in the cart.

I will also add a few ticket links below so that you can also take a look:

- https://wpml.org/forums/topic/cart-is-empty-when-switching-language/
- https://wpml.org/forums/topic/woocommerce-cart-empty-after-changing-language/

Also, in the link below you can find more information about how that functionality is built into our WooCommerce Multilingual plugin:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/clearing-cart-contents-when-language-or-currency-change/

Can you please translate the product/event in both languages and then see if that solves the issue?

I will be waiting for your response so please let me know how that goes.

Kind regards,
Mihai Apetrei

May 2, 2019 at 5:46 pm #3727899

Rob Coers

Hello Mihai,
Thank you. The answer and the documentation is clear now. I've activated the popup message warning for now, since we don't have events/products in two languages.

Bye,
Rob

May 3, 2019 at 11:12 am #3733675

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi Rob and thank you for the confirmation.

The alternative you've chosen sounds like the best option in this case.

Can you also please mark this current ticket as resolved, too?

Thank you very much!

Kind regards,
Mihai

May 3, 2019 at 12:56 pm #3734409

Rob Coers

My issue is resolved now. Thank you!