function _getStoreByCode($storeCode) { $stores = array_keys(Mage::app()->getStores()); foreach ($stores as $id) { $store = Mage::app()->getStore($id); if ($store->getCode() == $storeCode) { return $store; } } return false; }
Expert PHP Developer from Lahore Pakistan | WordPress | Magento | Yii Framework
function _getStoreByCode($storeCode) { $stores = array_keys(Mage::app()->getStores()); foreach ($stores as $id) { $store = Mage::app()->getStore($id); if ($store->getCode() == $storeCode) { return $store; } } return false; }