If you want to get all IDs of available store views in your Magento store you can just use this code
<?php $allStores = Mage::app()->getStores(); $allStoreIds = array_keys($allStores); ?>
but if you want to get more information about each store, you can use this code:
<?php $allStores = Mage::app()->getStores(); foreach ($allStores as $storeId => $storeObject) { $storeCode = $storeObject->getCode(); $storeName = $storeObject->getName(); } ?>
Related posts:
How to setup a cron job in Magento
3 simple steps to setup cronjobs on server and create custom task in your Magento instance.
Set...
Magento: get url for adminhtml
If you need to get correct url in Magento admin you can use this code:
<?php
$url = Mage::h...
Installation of Magento
How To Download And Install Magento
If you have decided to build your e-commerce website with Mag...
Magento get Root Category Id
In Magento for getting root category id for current store view you should just run a code
<?php ...