This is the blog for getting Idea regarding PHP, Magento, jQuery and JavaScript for Customization.

Saturday 2 June 2012

Magento : Get category details form product id



$children = Mage::getModel('catalog/category')->getCategories(""ProductId"");
foreach ($children as $category)
{
    echo $category->getName();
}

No comments:

Post a Comment