NorN2 Posted February 3, 2010 Share Posted February 3, 2010 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_IDhow i can get cat_ID and use in my code?thanks NN 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