RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Get the frontend name for the current store view
Mage::app()->getStore()->getFrontendName();
Get current store ID
Mage::app()->getStore()->getStoreId();
Get current store code
Mage::app()->getStore()->getCode(); This returns store code, e.g. 'en' for a storefront that is setup for English and called 'en', and not the numerical id.
Determine if store view is enabled
Mage::app()->getStore()->getIsActive();
Get website ID for current store
Mage::app()->getStore()->getWebsiteId();
Get the current store model
Mage::app()->getStore(); Returns an instance of Mage_Core_Model_Store
Get group name for store
Mage::app()->getStore()->getGroup()->getName()
Get all Magento stores
Mage::app()->getStores(); Returns an array of Mage_Core_Model_Store models.
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website