Add specific javascript to a page.
Hi, Can a JavaScript file be added to a specific page? As an example the shopping part of the side would have shopping.js, and this file should not be loaded in other pages.
If you have a shopping module you can always use $this->header->addJS('shopping.js', null, false);
but if you only have some pages with editor text I think you should probably create a new template "shopping" that contains that javascript file at the bottom.
Thank you. It is a good idea and costs nothing.