I'm making a custom module for a customer, and for this module i use the "displayAdminProductsOptionsStepTop" hook.
I successfully added my custom css and js like this:
public function hookactionAdminControllerSetMedia($params) { $this->context->controller->addJS($this->_path.'/views/js/customJSfile.js'); $this->context->controller->addCSS($this->_path.'/views/css/customCSSfile.css'); }
The problem
It loads this js and css file in every backend page, and this gives some conflicts.
Is there a proper way to load the js/css only for the AdminProducts page?