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?

closed as too broad by Siarhey Uchukhlebau, liyakat, Keyul Shah, brentwpeterson, Moose Jun 12 '17 at 9:10

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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.