jakubstaszak Posted October 28, 2014 Share Posted October 28, 2014 Hey guys how can i check from module's level whether it's being launched from hook on particular page? My problem is JS messing up on product page, but neccesary on product-list/category, I need to exclude it on every other page, thinking of sth like this: function hookHeader($params){ if (Configuration::get('PS_CATALOG_MODE') || $WHATEVER_HERE!='product-list') // or so return; $this->context->controller->addJS(($this->_path).'js/ntiprodsattribsAR.js'); } .......or should I just give up & exclude module from hook? Maybe any other way? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now