How to get store information Magento PHP



// Get store data
echo "<br />Get store data : ".Mage::app()->getStore();

//Store Id
echo "<br />Store Id : ".Mage::app()->getStore()->getStoreId();

//Store code
echo "<br />Store code : ".Mage::app()->getStore()->getCode();

//Website Id
echo "<br />Website Id : ".Mage::app()->getStore()->getWebsiteId();

// Store Name
echo "<br />Store Name : ".Mage::app()->getStore()->getName();

//Is Active
echo "<br />Is Active : ". Mage::app()->getStore()->getIsActive();

//Store Home Url
echo "<br />Store Home Url : ".Mage::app()->getStore()->getHomeUrl(); 


Share on Facebook