Magento – How to Retrieve Category Name, URL, and Image Using Category ID

categoryimageurl

As we know that in the Category Management page we can upload an image and give a URL for each category. I want to retrieve the Category name, Category URL and Category image using only the Category Id that I already have with me. Is it possible to do so?

Best Answer

Ravi Chan,you can only do this Magento Category Model Call.

$Category=Mage::getModel('catalog/category')->load($cat);
$name=$Category->getName();
$url=$Category->getUrl();
$image=$Category->getImageUrl()
Related Topic