Search code examples
magentomagento-1.9

How to get Store Name by using Multiple Store Id in Magento?


I want to get store name by using multiple store ids in magento. like:

<?php $store_ids= array(1,2,3);

Now how to get store names of these store ids.


Solution

  • I got the answer:

    We can get storename through multiple store ids like this:

    $store_ids= array(1,2,3);
    foreach($store_ids as $storeId){
        $store = Mage::getModel('core/store')->load($storeId);
        $name = $store->getName();
    }