Monday, July 9, 2012

How to get prarent category id from current category in magento?

$objParentCat = 20;
$objCurrCat = Mage::getModel('catalog/category')->load($objParentCat->getParentId());

No comments:

Post a Comment

Please mention your comments.......