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




About Pragnesh Karia

Pragnesh Karia, Open Source Enthusiast, Software Professional, Software Developer, Technical Lead ,Magento, Joomla ,Joomla LMS , Moodel LMS ,PHP ,Mysql, Ajax, Javascript, Jquery, Linux, Fan of Open Sources , Annet Technologies , SEO Analyst , Mootools