Friday, 1 June 2018

How to get data from Magento 1.9 System Configuration

<?php
$store = Mage::app()->getStore(); // store info
$configValue = Mage::getStoreConfig('sectionName/groupName/fieldName', $store);
?>
example
<?php
$store = Mage::app()->getStore(); // store info
$configValue = Mage::getStoreConfig('rene_banner_settings/rene_banner_rule/igstnumber', $store);
?>

No comments:

Post a Comment