Magento: Get current and parent category
This article shows how to get category information (category name, id, description, url, etc.) of the category page you are in. Along with the information of the parent category of the currently viewed category. Get current category // Get current category $currentCategory = Mage::registry('current_category'); Print current category array < pre> $currentCategory = Mage::registry('current_category'); echo " … Read more