Home » Magento6 December 2009

Magento: Get store information

Below is the code to get Magento store id, store code, store name, etc.

Get store data
Mage::app()->getStore();

Store Id
Mage::app()->getStore()->getStoreId();

Store code
Mage::app()->getStore()->getCode();

Website Id
Mage::app()->getStore()->getWebsiteId();

Store Name
Mage::app()->getStore()->getName();

Is Active
Mage::app()->getStore()->getIsActive();

Store Home Url
Mage::app()->getStore()->getHomeUrl();

From Mukesh Chapagain's Blog, post Magento: Get store information

php magento mukesh chapagain

Get New Post by Email

Find me on

Facebook Twitter Google+ LinkedIn RSS Feed
  • Pingback: Magento: Get store information http://blog.chapagain.com.np/magento-get-store-information/ | Magento News

  • Jeremy

    I have multiple stores and I need the id’s in order to import products to specific stores. What exactly do I do with/put the code from the link?

  • Steve

    How do you find the store address and contact phone number? I’ve looked and looked but haven’t found it yet

  • http://webraumfahrer.com T Low

    Also looking for a method to get store information such as company name, address or e.g. a store email address…

  • Alinasrulah

    Hey Bro Thanks….!!!

  • Turrnerart

    you rock, spent way too much time looking for this!

  • Turrnerart

    you rock, spent way too much time looking for this!

  • Sandipgulati08

    how to set stor id at run time

  • http://www.register-web-domain.in Domain register

    Very nice information I really bookmarked it, for further
    reading.Thanks 

  • Stasepravitepametni

    Dont work on 1.6

  • Stasepravitepametni

    Dont work on 1.6