Home›Support›English Support›[Resolved] want to PLACE the ORDER the users get redirected to the same page instead of the payment screen
[Resolved] want to PLACE the ORDER the users get redirected to the same page instead of the payment screen
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues on your WooCommerce multilingual site where users get redirected to the same page instead of the payment screen when trying to place an order in the English version, while other languages like Spanish and French work fine, this might be due to multiple endpoints being registered with the main string in Spanish.
Solution: First, ensure that the 'Order received' endpoint in WooCommerce -> Settings -> Advanced is set to 'order-received'. Then, go to WPML -> String Translation and delete all strings related to 'pedido-recibido' and 'order-received' endpoints. After that, translate 'order-received' to other languages as needed, for example, 'pedido-recibido' for Spanish. Additionally, check other endpoints like 'order-pay' and ensure they are set correctly in WooCommerce settings and translated appropriately in String Translation. Follow the steps provided in our errata for detailed instructions: Incorrect content displayed when WooCommerce endpoints are translated from non-English to English.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us: WPML 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.
On barcelonatangoamigo.com we have woocommerce in SP / EN / FR and on the EN version, when you want to PLACE the ORDER the users get redirected to the same page instead of the payment screen. SP and FR work fine.
Reference to our recent chat, please try the following:
IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.
- Deactivate all plugins except WPML, String Translation, WooCommerce and WCML and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2021 or 2024).
- Also check the browser's console for any JavaScript errors. If you find any, copy that in your next reply. See https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/ for details on how to find these errors.
Please let me know your findings, when you're ready and I'll try my best to further assist you on the matter.
Thanks Waqas
It´s not easy for me to create a staging site nor to do those tests at the moment 🙁
Could you do that for me, please? I think you have more tools..
Thanks in advance!
> deleted all strings from ST and then changed the order received endpoint to "order-received" in WC settings. Then translated this to ES and FR, it works now hidden link
You can check on the CW site and then can apply the solution on your production site. Remember to take a full backup before proceeding.
Thanks, I cannot login to the staging site. The url is not the masked one anymore (/acceder) and my user is not being recognized. Defender Pro needs to be reactivated for the masked url to work, but my user...
It´d be useful to login and see what endpoints you´ve changed (see screenshot).
Thanks. I´ve opened the staging site and I see the same ESP endpoints as in the production site.
I´m confused as I understood you had erased the ESp endpoints and replaced them with the ENG ones in: WooCommerce > Settings > Advanced page.
Let me explain, how you can correct this in your site and observe in the staging one:
- In staging site, go to WooCommerce -> Settings -> Advanced, scroll down to "Checkout endpoints" section. And notice that "Order received" endpoint is written as "order-received". While, if you compare this with your screenshot in one of recent messages, it was like "pedido-recibido" in Spanish.
- In the staging site, WPML -> String Translation and see that "order-received" endpoint has English flag and is now translated to "pedido-recibido" in Spanish. You may also notice "pedido-recibido" with an English flag and not translated which you can ignore or simply delete because that's not relevant.
- You can also verify this (in staging), by going to WooCommerce -> WooCommerce Multilingual & Multicurrency -> Store URLs and see that Order received endpoint as "order-received" in English while translated to Spanish as in String Translation.
So to fix this in your site, follow these steps:
- Go to string translation.
- Find "pedido-recibido" and "order-received" end points and delete all these strings (i.e. see attached).
- Then go to WooCommerce -> Settings -> Advanced and use "order-received" for Order received end point and save.
- Then go back to string translation.
- Search for "order-received" endpoint and translate to other languages as needed (i.e. pedido-recibido for Spanish).
And it should work now.
The key point here is that this endpoint is registered multiple times using different languages. That needs to be deleted, corrected as "order-received" in WC settings and then translated again in ST.