Magento get config variable value
Magento get config variable value: Magento config variable values can be get as below.
Magento get config variable value Syntax
Use the following syntax to get magento admin configuration value.
$configValue = Mage::getStoreConfig('section_name/group_name/field_name');
or
$configValue = Mage::getStoreConfig('section_name/group_name/field_name',Mage::app()->getStore());
This will fetch the current store’s config value.
Note : section_name,group_name and field_name are names defined in your config.xml
Advertisements