Checkout Language in Additional Scripts

Solved
rjml
Tourist
4 1 0

I am trying to check checkout language on "Additional Scripts" on "Checkout".

The purpose if because of a payment method that have written text (on this script field) and we need to be able to translate it.

Any help?

0 Likes

Hi @rjml,

Go to Settings > Additional scripts. https://i.imgur.com/VCE3GWV.png

You can find it here.

Hope it helps!

If you find my answer can help you solve your issue, please mark it as a solution. Thank you and good luck.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
0 Likes
rjml
Tourist
4 1 0

@LitExtension Thanks for your answer.

We know where to locate that Additional Scripts, and we already have scripts running (and working).

But we are setting up a multi language store now.
And some of our scripts (on that field Additional Scripts) use text.

What we want is to know how to identify current checkout language, something like:
if checkout language == pt then
   run PT SCRIPT
else if checkout language == en then
   run EN SCRIPT
endif

This is what we are not able to achieve. And we can't find anything about it on docs.

We just need to know, how to identify current checkout language on Settings > Checkout > Additional Scripts, in order to provide Script according the language.

Can you help? Thanks.

 

0 Likes
rjml
Tourist
4 1 0

This is an accepted solution.

For anyone coming here.

We were able to do it using: shop.locale

0 Likes