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?
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?
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.
For anyone coming here.
We were able to do it using: shop.locale