morphet Posted January 17, 2017 Share Posted January 17, 2017 Hi, I am using a module which needs to define some JS variables in a tpl file, but it seems Smarty does not recognize the tag anymore. The error is: {addJsDef order_num=$order_num}" unknown tag "addJsDef" I have those lines in the end of the tpl file: {strip} {addJsDef order_num=$order_num} {addJsDef order_history=$success} {/strip} Does anyone knows if those tags should be replaced by something new or if this behavior does not exist anymore ? Thanks for you help! Link to comment Share on other sites More sharing options...
morphet Posted January 17, 2017 Author Share Posted January 17, 2017 Finally found it. Actually my above problematic script can be easily replaced by <script> order_num='{$order_num}'; order_history='{$success}'; </script> Hope this can help some beginners like me ^^ Link to comment Share on other sites More sharing options...
NearEarthObject Posted February 12, 2017 Share Posted February 12, 2017 Million of thanks indeed !! Link to comment Share on other sites More sharing options...
AnthonyJane Posted February 4, 2021 Share Posted February 4, 2021 Excellent thanks. So is addjsDef gone now? 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