$allStores = Mage::app()->getStores(); foreach ($allStores as $_eachStoreId => $val) { $_storeCode = Mage::app()->getStore($_eachStoreId)->getCode(); $_storeName = Mage::app()->getStore($_eachStoreId)->getName(); $_storeId = Mage::app()->getStore($_eachStoreId)->getId(); $_currentUrl = Mage::app()->getStore($_eachStoreId)->getCurrentUrl(); echo $_storeId; echo $_storeCode; echo $_storeName; echo $_currentUrl; }