Skip to content Skip to sidebar

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

Problem:
The client is experiencing an issue where non-logged-in users are redirected to an empty cart page when clicking on a WooCommerce order payment link, while logged-in users (such as admins) are directed to the correct payment page.
Solution:
We recommend verifying and confirming whether the problem persists with WPML disabled and in the default language. If the issue still occurs when WPML is disabled, it indicates that the problem is not related to WPML. Ensure that everything works correctly without WPML first, then enable WPML, translate the content, and check if any WPML-specific issues appear. Additionally, ensure that all related pages and URLs are properly translated to maintain functionality when using WPML with WooCommerce. For more details on translating WooCommerce pages with WPML, visit WooCommerce Multilingual.

If this solution does not resolve your issue or seems irrelevant due to being 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 further assistance is needed, please open a new support ticket at 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.

This topic contains 2 replies, has 0 voices.

Last updated by Dražen 1 week, 2 days ago.

Assisted by: Dražen.

Author Posts
February 24, 2026 at 4:23 am #17844760

dannyS-29

Hello, we are experiencing an issue with WooCommerce order payment links while using WPML. When we send customers the direct order-pay URL (e.g., /checkout-2/order-pay/ORDER_ID/?pay_for_order=true&key=ORDER_KEY), it redirects non-logged-in users to an empty cart page. However, the exact same link works correctly and shows the payment page when accessed while logged in as an admin.

February 24, 2026 at 7:04 am #17844843

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

Thanks for the patience.

1) Can you please share exact URL I can use to test this issue.

2) Please share the access details of your website, so I can log in and take a look.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/


- Please backup the site files and database before providing us access. 

- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.



Thanks,
Drazen

February 24, 2026 at 11:18 am #17846135

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

I have checked this further and can confirm that the first issue also occurs in the default language.

Regarding the second issue, I tested with WPML disabled and the same problem still happens.

Based on my testing, the issue appears both in the default language and even when WPML is not active. I recommend that you verify and confirm whether the problem persists with WPML disabled and enabled. If the issue still occurs when WPML is disabled and in the default language, I’m afraid this indicates that it is not related to WPML. Please make sure everything works correctly without WPML first, then enable WPML, translate the content, and let us know if any WPML-specific issues appear.

Also, when using WPML with WooCommerce, please ensure that all related pages and URLs are properly translated so everything functions correctly:
hidden link

Regards,
Dražen