How to get store details in Magento programmatically

How to get store details in Magento programmatically

In order to find out store information you may use the applicable snippet which definitely will be a quick snippet:

// Returns the current store's details
$store = Mage::app()->getStore();

// Returns the current store's id
$storeId = Mage::app()->getStore()->getStoreId();

// Returns the current website's id
$websiteId = Mage::app()->getStore()->getWebsiteId();

// Returns the current store's code
$storeCode = Mage::app()->getStore()->getCode();

// Returns the current store's group id
$storeGroupId = Mage::app()->getStore()->getGroupId();

// Returns the current store's name
$storeName = Mage::app()->getStore()->getName();

// Returns the current store's sort order
$storeSortOrder = Mage::app()->getStore()->getSortOrder();

// Returns the current store's home url
$storeHomeUrl = Mage::app()->getStore()->getHomeUrl();

// Returns the current store's status
$storeIsActive = Mage::app()->getStore()->getIsActive();

// Returns the current store's locale
$storeLocaleCode = Mage::app()->getStore()->getLocaleCode();