Skip Navigation

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

Problem:
When a client completes an order on the Greek version of the site, the thank you page redirects to the original English version instead of staying in Greek. This issue affects the functionality of Facebook pixels for tracking purchases in different countries.
Solution:
We have identified a workaround for this issue. We recommend updating your plugins and applying the code provided in our errata page. You can find the necessary steps and code at the following link:

If this solution does not seem relevant to your situation, please do not hesitate to open a new support ticket with us for further assistance. You can do so by visiting our support forum.

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

Last updated by Ilyes 1 year, 6 months ago.

Assisted by: Ilyes.

Author Posts
November 28, 2023 at 3:23 pm

ivanK-37

there is an error in the operation of the site. When a client makes an order, for example, in the Greek version, after sending the order, his thank you page changes from Greek to English. That is, his checkout page is in Greek, and after he clicks the submit order button, a thank you page opens on the original English version of the site. This is a big problem because Facebook pixels have stopped working correctly in different countries and do not take into account purchases.

November 28, 2023 at 4:30 pm
November 29, 2023 at 9:51 pm #14956527

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

Thank you for your patience,

It turns out the issue is coming from the fact that this is a custom thank you page generated by the plugin PixelYourSite PRO, the exact domain that this page belong to is "[pys_superpack]woo_custom_thank_you_page_global_url"

This plugin isn't listed under our compatible plugins list : hidden link

I tried to find the URL manually and found out that translating it doesn't help either : hidden link

Could you please explain how this custom “Thank You” page is created? And how did you translate it ?

Best,

November 29, 2023 at 9:59 pm #14956581

ivanK-37

Hello.

I am sending you a screenshot from the PyxelYourSite plugin where you can disable this feature. The thing is that it makes no difference whether this function is enabled or not, I tried to turn it off so that the standard thank you page would work and the problem was still the same.

Снимок экрана 2023-11-29 в 23.58.24.png
December 1, 2023 at 5:02 pm #14974829

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

After further verification, the issue could be related to this known errata : https://wpml.org/errata/elementor-pro-custom-thank-you-page-not-displaying-in-second-language-when-woocommerce-endpoint-is-translated/

I could apply this solution for you if you could confirm back that you saved a backup of your site first.

In case you would like to apply it yourself :

1- Backup your site
2- Disable Cutsom Thank You page
3- Add the code to your module.php file as suggested in the documentation
4- Test the thank you page in second language
5- If it worked, enable the custom thank you page and test again with it

Looking forward to your reply,

Best,

December 1, 2023 at 6:16 pm #14975253

ivanK-37

Hello.

During a chat conversation when you sent me this solution, I did these steps and it did not help. As I told you, I disabled the Custom Thank you page and changed the Elementor pro code according to the instructions. Yes, at the moment I leave the changes and disable the Custom thank you page so that you can see this.

Please clarify if I can return the previous version of the WPML plugin and this will solve the problem, since I noticed that the problem appeared on 11/26 probably after updating WPML, but unfortunately I cannot be 100% sure of this and this is just an assumption.

Thank you.

December 4, 2023 at 5:07 pm #14990203

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

Thank you for your patience and I apologize for the confusion,

I forgot that we already tried that solution over the chats, so I went ahead to test other scenarios,

For now, the thank you page doesn't work for both custom and default pages, but each one has a different behavior/issue.

1- If we use the Custom page from Pixelyoursite, the translated thank you page is accessible from direct link, but the issue only occurs when you order something in secondary language, it will then always redirect to the default English thank you page

2- If we use the default thank you page, Some languages like Greek, gives a 'not found' error page when checking out in Greek, which might be related to a current issue similar to this ticket : https://wpml.org/forums/topic/thanks-page-shown-in-default-language-after-submitting-order-in-other-languages/

That is why I had to escalate this to our developers as they are already working on similar known issues, I will get back to you once I get an update from them,

Best,

December 5, 2023 at 11:03 am #14995861

ivanK-37

Hello.

As far as I understand, I'm not the only one who has this problem. The fact is that this greatly interferes with the correct operation of the site, and not only on one side.

I asked you if it would help if I returned the old version of the WPML plugin, and you said that it would not help. However, I found old versions of the plugin on your site and installed them on the site and it helped.

December 5, 2023 at 5:48 pm #15001729

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

My apology for the confusion as I didn't reply to your question regarding trying older versions,

After comparing the old and new version of your site, could you please confirm which plugin you downgraded to older versions?

From your configuration, I see that WPML String Translation changed from 3.2.8 to 3.2.6.

Also, I see that the plugin WooCommerce Multilingual & Multicurrency was updated from 5.3.0 to 5.3.1

Any other particular change that we should be aware of? this would really help us expedite a final solution for this,

Thank you for your help!

December 5, 2023 at 6:35 pm #15001977

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello again,

If you have a staging environment, or on your live site if possible, one more thing we would appreciate if you could try, is to update WPML to version 4.6.8 (Newest version) and WPML string translation 3.2.8.

When you shared a copy of the site, you had WPML 4.6.7, which is different from what other users had (Issue occurred on different version), which leads us to the next question:

Have you updated Woocommerce to 8.3.1 at the same period? I see that this version was released at around the same time as when you started experienced this on 11/26.

We are trying to pinpoint which changes were done to your site from since the last update you've done before seeing this issue,

Best,

December 6, 2023 at 12:38 pm #15007595

ivanK-37

I would love to help and tell you the order in which I updated the plugins, but in reality I don’t remember exactly.

I have returned the old versions of the WooCommerce Multilingual & Multicurrency and String Translation plugins. Approximately on the version from August

After this, the standart order-received pages began to work.

I also enabled the custom thank you page and saw that it was possible to translate them into String translation and there I translated the links and now the custom thankyoupage works. But previously, custom thank you page did not need to be translated; they worked without translation into string traslations.

December 6, 2023 at 3:13 pm #15009105

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

Thank you for the information, it really helped a lot,

Our developers found a workaround to this issue and it was posted here : https://wpml.org/errata/wcml-custom-order-received-endpoint-redirects-to-default-language/

Please consider updating your plugins again and insert the suggested code above,

Thank you for your patience,

Best,