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.
I need to output it in template files and CMS pages, what would the code be for each?
Thanks :)
That's a Core configuration, so it's saved in core_config_data
table, and the phone information is the field:
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"}}
You can find more info on this here, and you can always do the reverse programmatically
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With