WooCommerce redirects to the wrong language Checkout Completed page
-
Hello!
I have a multilingual website. And users can go through the whole checkout process in different languages. We have these two checkout pages and everything works fine and is translated correctly:
- scienhub.test/en/checkout/
- scienhub.test/ca/pagament/
But once the purchase is finished, both of them open the English version instead of the actual language version:
- scienhub.test/en/checkout/order-received/964/?key=wc_order_f9DH02UaRDmJc
If I manually introduce the same address in other languages by changing the locale in the URL, everything looks fine and is translated. Like:
- scienhub.test/ca/checkout/order-received/964/?key=wc_order_f9DH02UaRDmJc
So, our problem is that WooCommerce doesn’t take the user to the correct localized page. Is this a bug? Do you have any information on how can we solve it?
I’ve tried using add_action(‘woocommerce_thankyou’, …) in different ways, but I can’t retrieve the initial language the checkout page is being visited in, because the language is retrevied once the user is already in the last page in English.
From WooCommerce support, we have been asked to contact you.
Thanks a lot! We really appreciate your plugin ??
The page I need help with: [log in to see the link]
- The topic ‘WooCommerce redirects to the wrong language Checkout Completed page’ is closed to new replies.