Access global helper.js from another script
-
How can I access global helper functions from another template's script (for example: orders-script)
-
Global helper functions cannot be reached from the script.
You can add some commonly used code to the script this way.{#asset mycode.js} function beforeRender(req, res) { ... }