Skip Navigation

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

Problem:
I'm trying to create a custom thank you page with Elementor Pro: create a page > Site Settings > WooCommerce tab > Set the page in the option Purchase Summary.
After translating the custom thank you page, it does not display after completing the checkout in the second language.
Solution:
https://wpml.org/errata/elementor-pro-custom-thank-you-page-not-displaying-in-second-language-when-woocommerce-endpoint-order-received-is-translated/

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

Last updated by Long Nguyen 1 year, 11 months ago.

Assisted by: Long Nguyen.

Author Posts
May 15, 2023 at 7:11 pm #13650935

mohamedE-48

Hello,
I have made a custom thank you page and shows well but in the second language don't show the translation of this page and go to the main thanks you page.

the below example well explains what I mean

Main lang -> en
second lang -> ar.
*** Please add the domain link to all links below ***

- when I go to make a Purchase order in en language go to this page,

/thank-you/order-received/8514/?key=wc_order_Oh5kSMKHtJQJ4

if I translate it into the second language show the translated page successfully like the link below,

/ar/%D8%B4%D9%83%D8%B1%D8%A7-%D9%84%D9%83/%D8%A7%D8%B3%D8%AA%D9%84%D8%A7%D9%85-%D8%A7%D9%84%D8%B7%D9%84%D8%A8/8514/?key=wc_order_Oh5kSMKHtJQJ4

- when I go to make a Purchase order in ar language go to this page

/ar/%d8%a7%d8%aa%d9%85%d8%a7%d9%85-%d8%b9%d9%85%d9%84%d9%8a%d9%87-%d8%a7%d9%84%d8%b4%d8%b1%d8%a7%d8%a1/%D8%A7%D8%B3%D8%AA%D9%84%D8%A7%D9%85-%D8%A7%D9%84%D8%B7%D9%84%D8%A8/8513/?key=wc_order_cq1EEfRrXiGTq

and this page I don't need to show it but I need to show it like this page below

/ar/%D8%B4%D9%83%D8%B1%D8%A7-%D9%84%D9%83/%D8%A7%D8%B3%D8%AA%D9%84%D8%A7%D9%85-%D8%A7%D9%84%D8%B7%D9%84%D8%A8/8514/?key=wc_order_Oh5kSMKHtJQJ4

I hope that I succeeded in communicating the issue to you, and I hope that you will help me solve this issue.

May 16, 2023 at 7:40 am #13652763

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Mohamed,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

For order 8513 which you made in Arabic language, I see the endpoint in the English language is /checkout/order-received/8513/?key=wc_order_cq1EEfRrXiGTq
which is the standard order received (thank you) page of WooCommerce.

For order 8514 which you made in English language, I see the endpoint is
/thank-you/order-received/8514/?key=wc_order_Oh5kSMKHtJQJ4
which is the custom order received (thank you) page.

Please check these screenshots
hidden link
hidden link

Can you please let me know how you create the custom thank you page on your site? Or help me to replicate the issue on a clean installation of WordPress and WPML. You will be login directly with this link hidden link
Then let me know how to replicate the issue.

Look forward to your reply.
Thanks

May 16, 2023 at 2:02 pm #13657129

mohamedE-48

Hi,
I create the page using elementor and make it default by going to elementor>Site Settings>WooCommerce pages>Purchase Summary .. and choosing the page.

May 17, 2023 at 2:57 am #13660151

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

I can create a custom thank you page on my demo site. However, I do not see that issue. After completing the checkout in the second language, I will be redirected to the translation thank you page.

I suggest you can try two steps below and see if it helps:

1. Enable a minimal environment:
- Deactivate all plugins except WPML, WooCommerce, Elementor and their addon plugins
- Switch to a standard theme of WordPress
❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/

2. Go to WPML > String Translation > Scroll down and click on "Translate texts in admin screens" > Search for the keyword "elementor_woocommerce_purchase_summary_page_id" > Add it to String translation.
Go back to WPML > String Translation and translate the thank you page ID with its translation page ID. You can find the page ID in the URL, for example:
wp-admin/post.php?post=3457&action=edit&lang=en

If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.
I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

May 19, 2023 at 2:56 am #13675703

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

I see the issue on your site. It happens when the endpoint "order-received" is translated into the Arabic language. If I delete the translation in WPML > String Translation, the translation thank you page display correctly after completing the checkout.

I'm asking our 2nd tier support about this issue and update you here when I have something to share.

Thanks.

May 22, 2023 at 3:32 am #13685975

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

In case you want to translate the endpoint "order-received", please follow the workaround here https://wpml.org/errata/elementor-pro-custom-thank-you-page-not-displaying-in-second-language-when-woocommerce-endpoint-order-received-is-translated/

Thanks.