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
<?php echo Mage::getStoreConfig(‘general/store_information’); ?>
<?php 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.
If do not Want the complete array or just want to use address info use
<?php echo Mage::getStoreConfig(‘general/store_information/address’); ?>
In similar fashion for store phone number use this code
<?php echo Mage::getStoreConfig(‘general/store_information/phone’); ?>
(Visited 71 times, 1 visits today)