In Magento for getting root category id for current store view you should just run a code
<?php $rootCategoryId = Mage::app()->getStore()->getRootCategoryId(); ?>
For getting root category id of specific store view, you have to just pass store Id to getStore function
<?php $storeId = 22; $rootCategoryId = Mage::app()->getStore($storeId)->getRootCategoryId(); ?>
Related posts:
Add a total row in admin grid Magento
Magento has possibility to add total row in any grid in admin panel. You just need to use some addit...
What is Magento?
Magento is one of the most powerful content management system available today and it has a wide use....
Check if you are in Admin area
Simple piece of code for checking are you on admin area or on frontend
<?php
if (Mage::a...
How to Setup Store
Setting Up Your Store On Magento
Setting up your Magento store is quite an easy and straightforw...