B-219 Sec-55 Noida, India
+918010221733

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’); ?>

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

(Visited 59 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.