B-219 Sec-55 Noida, India
+918010221733

Magento Code to get Store Information

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’);    ?>

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 69 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.