Magento Get current category id Magento November 21, 2012 Pramod T P <?php $_category = Mage::registry(“current_category”); echo $currentCategoryId= $_category->getId(); ?>