Back to Top

Get Parent Category of a sub Category In Magento

Updated 29 February 2024

$subCatid=12 ;// sub category which you want to find parent category;

$parentCatid = Mage::getModel('catalog/category')
                  ->load($subCatid)->getParentId();

Searching for an experienced
Magento Company ?
Find out More
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home