ques-ENrX8WOg

Search A2Z 24

Question : Magento: Get store contact telephone

X

Seems like it should be simple, but cant find a solution anywhere.
I need to output the Store Contact Telephone number,
which is in Store Informtion in the admin. System -> Configuration ->General(Tab) -> General -> Store Information

I need to output it in template files and CMS pages, what would the code be for each?

asked March 24, 2017

1 Answers

Dispalying 1 to 1 of 1 |

Store contact telephone is a Core configuration setting, so it's saved in core_config_data table, and the phone information store in
general/store_information/phone

So, all you need is to read the configuration data as

$storePhone = Mage::getStoreConfig('general/store_information/phone');

For CMS pages insert the following variable:

{{config path="general/store_information/phone"}}
See comments (0) | Comment
Answered 2 Years ago
Dispalying 1 to 1 of 1 |

Write your Answer write code <pre class="brush: xml">---code---</pre>

Login as a member to access answering block !! click-here
loading...

×