ques-ENrX8WOg

Search A2Z 24

Question : Magento: Get store contact telephone

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 6 Months 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...

Reveal Modal Goodness

This is a default modal in all its glory, but any of the styles here can easily be changed in the CSS.

This is just a simple modal with the default styles, but any type of content can live in here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi quis sem vel enim eleifend tristique. Etiam tincidunt faucibus pharetra.

×