Jump to content

Turn off modul on the product site (Scary EN)


Recommended Posts

Hi,
i use this part of code , for hide/show part of the module on the product site:
function hookHeader($params) { if(strpos($_SERVER[‘SCRIPT_NAME’],‘product.php’) && $_REQUEST[‘id_product’] > 14) { return $this->display(FILE, ‘productattributesnc-header.tpl’);
}
it make - if pruduct_id is more then 14 display ‘productattributesnc-header.tpl’);
BUT
i have hundrets products in the same subcategory and in url isnt Category_ID
how i can get cat_ID and use in my code?
thanks NN

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...