Magento: Get store information
Below is the code to get Magento store id, store code, store name, etc.
Get store data
Mage::app()->getStore();Store Id
Mage::app()->getStore()->getStoreId();
Store code
Mage::app()->getStore()->getCode();Website Id
Mage::app()->getStore()->getWebsiteId();Store Name
Mage::app()->getStore()->getName();Is Active
Mage::app()->getStore()->getIsActive();Store Home Url
Mage::app()->getStore()->getHomeUrl();
[...] Magento: Get store information http://blog.chapagain.com.np/magento-get-store-information/ Posted in December 7, 2009 ¬ 7:18 amh.adminNo Comments » [...]
I have multiple stores and I need the id’s in order to import products to specific stores. What exactly do I do with/put the code from the link?
How do you find the store address and contact phone number? I’ve looked and looked but haven’t found it yet
Also looking for a method to get store information such as company name, address or e.g. a store email address…
Leave your response!
Donate
Help this blog grow!
Categories
Archives
Recent Tweets
Recommendations
Find me on Facebook
recent posts
most popular
tag cloud