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: How to set and get registry?
- Magento: How to get most viewed products?
- Magento: Get Bestselling products by category and date time
- Magento: Track Visitor’s Information
- Magento: Send Transactional Email
- Website statistic (User Information) in Javascript
- jQuery: Grey out background and preview image as popup
