I tried :

$store = Mage::app()->getStore(); 
$configValue = Mage::getStoreConfig('design/themes/templates', $store);

but it returned null. Where is my fault? p.s. Value set

3 Answers 3


If you want to get the config of the currently viewed store:

$configValue = Mage::getStoreConfig('sectionName/groupName/fieldName');

If you want to get the config of one of the other stores and not the current one:

$store = Mage::app()->getStore();
$configValue = Mage::getStoreConfig('sectionName/groupName/fieldName', $store);

I guess you want to get your current theme, so you need this:

$configValue = Mage::getStoreConfig('design/theme/template');

For Magento 1.9 :

Get Store Id :
Get Config Value :
$configValue = Mage::getStoreConfig('sectionName/groupName/fieldName', $storeId);
as per store vise :
$storeId = 2; // ID of the store you want to fetch the value of $configValue = Mage::getStoreConfig('sectionName/groupName/fieldName', $storeId);


Get Config Value in phtml:

<?php echo Mage::getStoreConfig('design/themes/templates') ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.