foreach(Mage::app()->getWebsites()as $website){foreach($website->getGroups()as $group){
$stores = $group->getStores();foreach($stores as $store){//$store is a store object}}}
Thank you! Your example was very usefull for my custom magento api: https://github.com/JumpLink/magento-api/blob/master/src/app/code/local/JumpLink/API/Model/Store/Api.php
I do agree with all the ideas you have presented in your post. They’re really convincing and will certainly work. Still, the posts are very short for newbies. Could you please extend them a little from next time?..Keep this great work magento development company in bangalore
Thank you! Your example was very usefull for my custom magento api: https://github.com/JumpLink/magento-api/blob/master/src/app/code/local/JumpLink/API/Model/Store/Api.php
ReplyDeleteWill this code display or fetch all magento websites. If not is there a way to fetch all magento websites.
ReplyDeleteRead this blog http://computergyd.blogspot.in
ReplyDeleteI do agree with all the ideas you have presented in your post. They’re really convincing and will certainly work. Still, the posts are very short for newbies. Could you please extend them a little from next time?..Keep this great work
ReplyDeletemagento development company in bangalore