What's your biggest current challenge? Have your say in Community Polls along the right column.

Why does my checkout button redirect to a Dutch page in my German store?

Solved

Why does my checkout button redirect to a Dutch page in my German store?

ElliotM
Shopify Partner
8 0 0

Hello,

 

When i press the checkout button on my German store, it redirects to the dutch checkout.

 

How can i fix this?

 

Thanks

 

https://van-assem.nl/de

Accepted Solution (1)

richbrown_staff
Shopify Staff
652 96 167

This is an accepted solution.

Hey @ElliotM , the checkout should follow the language of the store. If it doesn't, it's almost always a 3P app causing it that doesn't use the 'routes object'. Try turning off all apps and seeing if the correct language persists, and if so turning apps on one by one until you find the culprit and speak to their developers.

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 7 (7)

richbrown_staff
Shopify Staff
652 96 167

This is an accepted solution.

Hey @ElliotM , the checkout should follow the language of the store. If it doesn't, it's almost always a 3P app causing it that doesn't use the 'routes object'. Try turning off all apps and seeing if the correct language persists, and if so turning apps on one by one until you find the culprit and speak to their developers.

To learn more visit the Shopify Help Center or the Community Blog.

tomyzzzz
Tourist
6 0 2

Hey! I have the same problem. If I go to checkout from admin customization the page is translated correctly but from the website, it doesn't redirect to the right language. I have enabled only shopify apps: translate adapt and email.

richbrown_staff
Shopify Staff
652 96 167

Hi @tomyzzzz , on line 51 of main-cart-items.liquid you have a line that says:

 

<form action="/checkout?force_checkout=redesign" class="cart__contents critical-hidden" method="post" id="cart">

 which will have originally said:

<form action="{{ routes.cart_url }}" class="cart__contents critical-hidden" method="post" id="cart">

 

It's {{ routes.cart_url }} that makes sure the right locale gets passed through. Do you know how yours changed? I notice you also previously had Weglot; that could be related.

To learn more visit the Shopify Help Center or the Community Blog.

tomyzzzz
Tourist
6 0 2

I tried changing that but it didn't work for me. It's just so weird, if you go in from customization the checkout is correctly translated but on the actual website, it isn't. I have already tried clearing my browser cache and things.

richbrown_staff
Shopify Staff
652 96 167

Ok we've worked out it's because of leftover Weglot code. We commented it out and you'll see the checkout now shows in Estonian.

 

image (63).png

To learn more visit the Shopify Help Center or the Community Blog.

tomyzzzz
Tourist
6 0 2

Thank you so much 🙂 

Pablo1801
Excursionist
15 1 1

Hi, how did you get the problem fixed?