Allows to load extra CSS or JavaScript files on the Product List page.
The event handler should accept a single parameter - the controller object reference.
Call addJavaScript() and addCss() methods of the controller object to add references to JavaScript and CSS files.
Use paths relative to LemonStand installation URL for your resource files. Example:
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onDisplayProductList', $this, 'load_product_list_resources');
}
public function load_product_list_resources($controller)
{
$controller->addJavaScript('/modules/mymodule/resources/javascript/my.js');
$controller->addCss('/modules/mymodule/resources/css/my.css');
}