Jump to content

How to check whether hook is being loaded from particular subpage?


Recommended Posts

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

.......or should I just give up & exclude module from hook? Maybe any other way?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...