pawelwaw_f Posted August 19, 2016 Share Posted August 19, 2016 Hi, I added below code <!-- JS code --><script type="text/javascript"> Some JS CODE </script> <!-- end JS code --> to file order-confirmation.tpl On confirmation site then I see this code, but If I tested mobile version then it does not work. I am wondering why? Can someone help to solve this problem. Because I want to see this Javascript code on mobile devices also. Thank for advance. Best Regards Link to comment Share on other sites More sharing options...
electriz Posted August 19, 2016 Share Posted August 19, 2016 Have you tried to put it inside {literal} ... {/literal} tags? What do you have selected in BackOffice > Preferences > Themes > Mobile? Link to comment Share on other sites More sharing options...
pawelwaw_f Posted August 19, 2016 Author Share Posted August 19, 2016 I use "I'd like to enable it only on smartphones."| Link to comment Share on other sites More sharing options...
musicmaster Posted August 19, 2016 Share Posted August 19, 2016 It may help to disable the setting that moves javascript to the bottom on the Advanced Settings -> Performance page. That move quite often results in a script not working. Link to comment Share on other sites More sharing options...
pawelwaw_f Posted August 24, 2016 Author Share Posted August 24, 2016 This help, thank you. Is it possible to solve it with moving Javascript to the bottom of file? 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