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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 1 replies, has 1 voice.

Last updated by alinam-2 50 minutes ago.

Assisted by: Bobby.

Author Posts
April 15, 2025 at 4:15 pm #16935413

alinam-2

Background of the issue:
I am trying to ensure that after a checkout is made, the landing page shows 'Order received' for all translations and the original language.

Symptoms:
Once checkout is made, the landing page shows 'empty cart' for one translation, while it is correct for the other translation and the original language.

Questions:
Why does the landing page show 'empty cart' for one translation after checkout?
How can I fix the issue so that 'Order received' is displayed for all translations?

April 15, 2025 at 4:16 pm #16935445

alinam-2

There should be an issue with WP Endpoints I guess

April 15, 2025 at 4:46 pm #16935571

alinam-2

What I did:
deactivated all but strictly necessary pluings - no effect
retranslate all endpoints (see attached) - no effect
clear / flush all caches - no effect
wp / permalinks save - no effect

All in all, it's normal in French (original language), in German (translated via WPML) but not in English (translated too)

The last point suggests an issue with English when considered as a translation, WP and WC being natively English

wpml-wp-endpoints.jpg
April 17, 2025 at 10:30 pm #16945959

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

I am currently able to visit your site, switch to English and add an item to the basket and checkout OK.

Does the "empty cart" show when you change languages while in the checkout page ?

If that is the case we recommend enabling the 'Prompt for a confirmation and reset the cart' option in WooCommerce Multilingual.

This setting helps manage the cart's contents when switching languages or currencies by providing a dialog box that allows users to either proceed and reset the cart or go back and keep the items.

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

April 18, 2025 at 8:06 am #16946533

alinam-2

Hello,

The point is that you did not complete the checkout. Look, it's written "after a checkout is made, ...", the problem is after, ie landing on "empty cart" page, instead of "order received" page.

The issue is happening with any visitor in English. Not a question of changing language at a given moment.
As written, it works normally in French (original language), and Germain (translated).
But not in English,which is the native language of WP / WC. This problem started with last WC multilingual update. For me, it suggests that WC multilingual is creating confusion on endpoints when WP / WC are not in English; further, when I see the list of WP endpoints in WPML string translations, it seems to be particularly illogical.

=> why is bugging in English only? And how to solve it?

Kind regards

April 18, 2025 at 5:19 pm #16947892

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for clarifying this.

1. I was able to finalize a checkout in English (redirected me to the empty cart page instead of order-received)
---> can you confirm if you received an order from a Test user?

2. Checking out in French I get the payment confirmation and go to the order received page.

Testing these pages out we can see that the order-received page does not populate for the EN language.

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

April 18, 2025 at 6:12 pm #16948007

alinam-2

ps: sorry, forgot to mention, I received your 2 orders

April 21, 2025 at 4:51 pm #16952460

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the access details!

I am currently working on this and will update you shortly.

April 22, 2025 at 5:14 pm #16956744

alinam-2

Hello Bobby,
I hope so.
All in all, ticket was open 1week ago
Kind regards

April 22, 2025 at 6:24 pm #16957002

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Was our access altered I no longer have backend access to continue with our debugging process, see screenshot below.

Screenshot 2025-04-22 at 11.22.39 AM.png
April 24, 2025 at 4:46 am #16962385

alinam-2

You should be working from an IP that I banned
Time ago, I faced a DDOS ... and had to ban the numerous networks that were involved in this attack
What is your IP?
Kind regards

April 24, 2025 at 3:50 pm #16965351

alinam-2

Hello,
Did you try again? it should be sorted out
Regards

April 24, 2025 at 9:44 pm #16966412

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

1. Go to WPML->String Translation -> Search for 'order-received' and check both boxes Exact match / Include translations .

2. You will get 3 results

3. Select all three and delete them

4. Refresh the page, navigate to the dashboard and then navigate back to WPML->String Translation.

At the very top you will get a new string entry for commande-recue and it will be under the English language.

5. Select it and click on "change default language of selected strings" and change it to French.

It looks like it works ok for me now.

Let me know if you can follow the same steps on the live site, please.

Screenshot 2025-04-24 at 2.43.18 PM.png
April 26, 2025 at 7:55 pm #16971575

alinam-2

Hello,
On what you say, I have 4 results on stage 2, instead of 3
How do you explain?
Regards

WPML01.jpg
April 26, 2025 at 9:00 pm #16971629

alinam-2

Hello,
I don't know how familiar you are with non-EN WP but I have instead of 3.
How do you explain ?
Kind regards

WPML01.jpg