php - Get category ID in Magento Footer -
i want current category id in magento footer area can create condition things not shown in specific category. example want do: if current category 111 not show social icons i tried following code: <?php$current_id= mage::getmodel('catalog/layer')->getcurrentcategory()->getid();echo $current_id;?> problem above code echo random id , doesnt change go thru different categories. please help. thank you. when don’t have access $this, can use magento registry: $category_id = mage::registry('current_category')->getid(); or get variable set on block xml $this->getlayout()->getblock('product_list')->getcategoryid()