<?php
$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();
echo $_storeId;
echo $_storeCode;
echo $_storeName;
}
?>
Thank !
ReplyDeletevery useful, thanks
ReplyDeleteWhy not use simply $val->getCode() etc. instead of Mage::app()->getStore($_eachStoreId)->getCode() ?
ReplyDeleteThanks, quick and dirty but exactly what I needed!
ReplyDeletehi,
ReplyDeleteany help for doing the same in java