I am using Magento ver1.6.1. I need to get the root category of a store. I search in google by didn't get any good idea/code. Let me know how to get the root category of a store?
Mage::app()->getStore()->getRootCategoryId()
The above code gives the default root category, but I need the category Id which we select during store creation.
You can get the root category ID in Magento 2 by calling the getRootCateogryId() function in the phtml file.
Plants have three types of root systems: 1.) taproot, with a main taproot that is larger and grows faster than the branch roots; 2.) fibrous, with all roots about the same size; 3.) adventitious, roots that form on any plant part other than the roots.
Magento 2 is an open-source E-commerce platform, which is created by Roy Rubin and Yoav Kutner under Varien Inc. Magento was first released on March 31, 2007. It is a useful software for the online business, and currently a largest E-commerce platform in the world. Magento 2 is very simple, versatile, and quick to use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With