Get Store and Admin values in your template – Magento

The post title might be a little confusing, let me enlighten you 😉

Have you ever wanted to print a value from your Magento Admin?

Have you ever needed to retrieve a value from a custom Module?

You can easily do that with the following core function:

<?php echo Mage::getStoreConfig('general/store_information/name'); ?>
Code language: HTML, XML (xml)

As you can see, this getStoreConfig accepts a parameter. This parameter is the location of the value you're trying to retrieve.

In the example above we're printing:

System > Configuration > General > Store Information > Name

About Ricard Torres

Senior Front-end Software Engineer at Netcentric, from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

@ricard_dev @ricard_dev

📝 Blog 🎙 Podcast

Leave a Reply

Add <code> Some Code </code> if you need to.