Skip Navigation

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

Problem:
Client experiences issues with the checkout process on the English version of their WooCommerce site. After clicking the "Place order" button, they are redirected to the cart page, which shows as empty, and the order details are not displayed on the order received page or the account orders page, despite the order appearing in the WordPress dashboard.

Solution:
We recommend reviewing any redirect rules that might be set up within any redirection plugins used on the site. If any such rules are found, disable them and remove any filters that have been applied to enforce redirection to the checkout page. After making these changes, test the process again. Additionally, we suggest placing a new order while logged into your account, clearing all caches (site, server, and browser), and then rechecking the issue.

If you're experiencing this issue, we recommend you try the steps above. However, the solution might be irrelevant due to it being outdated or not applicable to your case. If the problem persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket on 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 4 replies, has 2 voices.

Last updated by Prosenjit Barman 11 months, 1 week ago.

Assisted by: Prosenjit Barman.

Author Posts
February 19, 2024 at 9:27 am #15316709

grzegorzK-16

Hi!
I have a Polish-English blog. When I make my first test shopping (payment via Bank transfer) in the Polish blog version everything works great. But when trying to do the same in the English blog version I have two issues.

Purchase steps in the Polish version of the blog are as follows:

1. Open shop page: hidden link
2. I add a product to the cart: hidden link (Equivalent to: hidden link)
3. Clicking “Przejdź do płatności” button. (Equivalent to: “Proceed to checkout”)
4. Redirect to: hidden link (Equivalent to: hidden link)
5. Clicking “Kupuję i płacę” button. (Equivalent to: “Place order”)
6. Redirect to: hidden link (Page displays details of my order)
7. My order is displayed in hidden link (Equivalent to: hidden link)
8. So everything is OK

Now the first issue which I found in the English blog version. Please tell me if my solution is correct:

When I was undergoing a similar purchase procedure as above, after clicking the “Place order” button, from the hidden link page I was redirected to the hidden link page. There was the information that the cart was empty.

On the internet, I found the following snippet which I have used.

add_filter( 'woocommerce_checkout_redirect_empty_cart', '__return_false' );
add_filter( 'woocommerce_checkout_update_order_review_expired', '__return_false' );

It helped, but still does not work properly. Now the steps of purchase in the English version are as follows:

1. Open shop page: hidden link
2. I add a product to the cart: hidden link
3. Press the “Proceed to checkout” button.
4. Redirect to: hidden link
5. Clicking the “Place order” button.
6. I am redirected to hidden link
7. Unfortunately, the page does not display the 7387 order details. Instead, the hidden link page is displayed all the time.
8. The hidden link page does not display the order number 7387. There is nothing there.
9. Interestingly, such an order appears in the WordPress dashboard (hidden link).

I don't know how, but I can send the passwords you need for the administrator.

regards,
Grzegorz

February 19, 2024 at 1:58 pm #15318782

grzegorzK-16

Hi! Can anyone help me with this problem? 🙂

February 20, 2024 at 10:52 am #15321972

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Grzegorz,
Thanks for contacting WPML Support.

I understand the problem you're having. Normally, clicking the "Place Order" button on the Checkout page shouldn't redirect you to the Cart page, unless specific settings are in place. Given that you're using a redirection plugin on your site, I recommend reviewing any redirect rules that might be set up within that plugin. If you discover any such rules, please disable them and also remove any filters you might have applied to enforce redirection to the checkout page, then test the process again. This adjustment should hopefully resolve the issue.

Regarding the matter with the Order page in the English version, I conducted a test purchase from the English version of the site to investigate. Upon reviewing the WooCommerce Order section, following the guidelines you provided, I could view the order I placed. You can see the order in this screenshot: hidden link.

I also didn't encounter any redirections during this process. Therefore, the issue you experienced may have been caused by cached data. Could you please try placing a new order while logged into your account, clear both your site, server(if enabled at the server level), and browser caches, and then recheck the situation?

Please let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

February 20, 2024 at 12:24 pm #15322606

grzegorzK-16

I managed to solve this problem just a few minutes ago. Therefore, the report can be closed.

Here's what the problem was:
Some time ago I changed the default language of my website. Originally it was Polish. Now it's English.

But the Polish "Checkout endpoints" and "Account endpoints" remained on the page /wp-admin/admin.php?page=wc-settings&tab=advanced.

So I did it again and entered the English texts. I also made the necessary translations in "String translation" for the "WP Endpoints" domain.

And now it works properly.

I even removed the following snippet from functions.php:
add_filter( 'woocommerce_checkout_redirect_empty_cart', '__return_false' );
add_filter( 'woocommerce_checkout_update_order_review_expired', '__return_false' );

thanks!
Grzegorz

problem z order.png
February 20, 2024 at 1:55 pm #15323118

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Grzegorz,

It's great to know the issue has been resolved! Thank you for taking the time to share the solution as well.

Feel free to reach us if you ever need any assistance with our plugins. We will be happy to help!

Please take a moment to mark this ticket as resolved. Additionally, we always strive to improve, so if you could share your feedback on how we handled your request, it would be greatly appreciated. Your insights are invaluable to us!

Thank you for your cooperation and have a great day!

Best regards,
Prosenjit