johmarjac Posted May 31, 2019 Share Posted May 31, 2019 Hi, for Trusted Shops I am forced to have the Trused-Widget JS Code only loaded for english language. For now I have it in my custom theme in the custom.js file. Is there a possibility to only load the javascript code when the shop is on english language? Like can I query the currently set language with javascript? Link to comment Share on other sites More sharing options...
Daresh Posted May 31, 2019 Share Posted May 31, 2019 I think it's better to make a simple module hooked to the header that will add this file there according to the language. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now