Here is the following code to get Store information in Magento :
Get store data
Mage::app()->getStore();
Mage::app()->getStore();
Store Id
Mage::app()->getStore()->getStoreId();
Mage::app()->getStore()->getStoreId();
Store code
Mage::app()->getStore()->getCode();
Mage::app()->getStore()->getCode();
Website Id
Mage::app()->getStore()->getWebsiteId();
Mage::app()->getStore()->getWebsiteId();
Store Name
Mage::app()->getStore()->getName();
Mage::app()->getStore()->getName();
Is Active
Mage::app()->getStore()->getIsActive();
Mage::app()->getStore()->getIsActive();
Store Home Url
Mage::app()->getStore()->getHomeUrl();
Mage::app()->getStore()->getHomeUrl();
------------------------------------------------------------
Use it and have fun :)
No comments:
Post a Comment