r/shopify•
monopilot

Buy Button with „locale“

I‘m using the Buy Button channel and noticed that appending (manually) „&locale=fr“ to the checkout URL will switch to a french gui for the checkout pages. Any idea how I could program this directly within the Buy Button code?

Posted Nov 12, 2017, 12:15 PM UTC

14
MilkpoyleMan with the Muscles•

In the admin you can try editing your checkout language directly so French is the default. Should be under settings then checkout.

1
monopilotOP•

Actually I need different languages. So the admin trick does not solve.

1
TheManSedan•

Don’t know if this will work, and I’m on my phone so I can’t confirm. With that being said, we pass an automatic discount code through using a hidden input & I bet you can do the same with the language.

Find the code block for the form, and insert the below code into the form (we put it right at top) and try checking out. Hope it works!& please let me know, very interested.

<input type=“hidden” name=“locale” value=“fr” />
1
monopilotOP•

Unfortunately there is no customizable <form> code for the Buy Button channel. It is just something like JavaScript + css.

1