Showing posts with label Magento get category name from category id. Show all posts
Showing posts with label Magento get category name from category id. Show all posts

Saturday, 2 January 2016

Get category name by category id in magento


Get category name by category id in magento

$category = Mage::getModel('catalog/category')->load($categoryId);

// category name
$categoryName = $category->getName();

// category url
$categoryUrl = $category->getUrl();