How to get current store information in magento
Hello Friends, If you want to get the information of store, you can use the following code snippets:
Thanks,
// Get store data echo "Get store data : ".Mage::app()->getStore(); //Store Id echo "Store Id : ".Mage::app()->getStore()->getStoreId(); //Store code echo "Store code : ".Mage::app()->getStore()->getCode(); //Website Id echo "Website Id : ".Mage::app()->getStore()->getWebsiteId(); // Store Name echo "Store Name : ".Mage::app()->getStore()->getName(); //Is Active echo "Is Active : ". Mage::app()->getStore()->getIsActive(); //Store Home Url echo "Store Home Url : ".Mage::app()->getStore()->getHomeUrl();
Thanks,
Pritesh

Pritesh Pethani