Liquid, JavaScript, themes, sales channels
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?
Solved! Go to the solution
This is an accepted solution.
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 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.
This is an accepted solution.
For anyone coming here.
We were able to do it using: shop.locale
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024