Most of the time we want to access Store Contact info at different places of our magento site to do this we have a very simple and useful code i.e
echo Mage::getStoreConfig('general/store_information');
This code will fetch you an array containing complete store which is provided at backend From System->Configuration->General->Store Information.
use addressecho Mage::getStoreConfig('general/store_information/address');
use phone noecho Mage::getStoreConfig('general/store_information/phone');
or you can get using
$info = Mage::getStoreConfig('general/store_information');
store name : $info['name']
store address : $info['address']
store Phone : $info['phone']
where should i add those codes?
ReplyDeleteVery Halpfull
ReplyDeleteThanks