I have set telephone number from admin panel 'Store Contact Telephone', Now i want to show this number in header, How do i achieve this?

  • get phone no. using Mage::getStoreConfig and place it in header.phtml file. – BornCoder Jun 7 '17 at 10:59

You can get store phone number using this

$storePhone = Mage::getStoreConfig('general/store_information/phone');
  • <?php require_once 'app/Mage.php'; $storePhone = Mage::getStoreConfig('general/store_information/phone'); echo $storePhone; ?> not working? – user51361 Jun 7 '17 at 11:25

In a template file, you add the telephone number by calling getStoreConfig like this…

<?php echo Mage::getStoreConfig('general/store_information/phone'); ?>

If you need to include in a CMS Page,

{{config path="general/store_information/phone"}}

Not the answer you're looking for? Browse other questions tagged or ask your own question.