Get store name and other details from system configuration

Other topics

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.

Contributors

Topic Id: 1876

Example Ids: 6115,6116,6117,6118,6119,6120,6121,12211

This site is not affiliated with any of the contributors.