Shopify dynamic checkout button redirects to wrong checkout locale?

SherpasDesign
Shopify Expert
42 0 19

Hi All,

 

The area I am going to discuss is relatively new but I do hope someone from Shopify can shed some light on my question.

 

The new multi-language support is obviously based on the locale specific urls, for example https://mystore.myshopify.com/de

 

When a locale specific url is loaded in the browser all liquid objects are loaded with their translated properties, if there are translations of course.

 

The checkout can also be localized and to load the checkout with a specific locale, the locale needs to be added to the relative /cart url on a product form. So a German Add to cart button should submit a product form with the following url: "/de/cart".

 

However many themes use dynamic checkout buttons or the so-called Buy it now buttons. These buttons are generated by using the payment button filter like this: 

 

{{ form | payment_button }}

 

And we cannot find a way to control to what url these buttons submit the product form. Even if the current url is localized the dynamic checkout button will ignore this and open the the checkout without specifying the current locale.

 

This results in the following problem. For example, a store has English as the default language and German as an additional language. A visitor is viewing a product page in German and presses on the Buy it now button. The checkout is opened in English.

 

I hope someone from Shopify can comment on this.

 

Thanks,

 

Milen from Sherpas Design

Usman_Pervez
Shopify Expert
2 0 1

Hello Milen,

 

We are facing the similar issue. Have you got any solution for this problem?

 

Best Regards,

Usman

Shopify Expert

Thomas_WALT
New Member
1 0 0

Hi,

We are facing the similar issue.

even with static link towards : "/checkout?locale=en" the checkout always appears in the default language, which is a big problem for us.

It seems related to similar issues where thre is no response from Shopify :
https://community.shopify.com/c/Technical-Q-A/Checkout-Button-Language-Redirect-Missing/td-p/780559

Best regards

0 Likes