PrestaShop expert answer about javascript usage in shop's back office
Hello
- You can use hook: actionAdminControllerSetMedia it is executed on every page in shop back office.
If you want to run it only on orders list page you can use some php's if condition inside hookactionAdminControllerSetMedia() function to check what controller is currently viewed:if (Tools::getValue('controller') == 'AdminOrders')
- by default no, but you can do it with some work around. You can insert a script to modules page with module's __construct function. It will be included always - no matter if module will be installed (like it is with module usage inside hooks) or not. Then build some javascript code that will identify the module installation process.
0 comments:
Post a Comment