Showing posts with label Get catagory name from category id in magento. Show all posts
Showing posts with label Get catagory name from category id in magento. 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();