WooCommerce redirects to the wrong language Checkout Completed page
-
Hello!
I have a multilingual website. And users can go through the checkout process in different languages. We have these two checkout pages and everything works fine and is translated:
- scienhub.test/en/checkout/
- scienhub.test/ca/pagament/
But when the purchase is finished, both of them redirect to:
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, why doesn’t WooCommerce take the user to the correct page? Is this a bug? 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.
Thanks a lot!
- The topic ‘WooCommerce redirects to the wrong language Checkout Completed page’ is closed to new replies.