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();
Related posts:
- Magento: Load store specific product
- Magento: Show/Hide Demo Store Notice
- Magento: Showing Store Selector / Switcher in header and footer
- Magento: Track Visitor’s Information
- Magento: How to set and get registry?
- Magento: Send Transactional Email
- Magento: How to get product stock quantity & other stock information?
- Magento: How to get most viewed products?
- Magento: Get Bestselling products by category and date time
- Magento: Authorize.net not displayed in Payment Information section while Checkout

Pingback: Magento: Get store information http://blog.chapagain.com.np/magento-get-store-information/ | Magento News