Wednesday, June 8, 2011

Magento 1.3 How to get configured values

User can modify the configured values at Backend > System > Configuration and Magento stores the configured values in the table core_config_data
Table core_config_data
You can retrieve that value by the path of configured value. Here is the code if you want to get custom email 1 at System > Configuration > General > Store Email Address > Custom Email 1 > Sender Email
$custom1_email = Mage::getStoreConfig('trans_email/ident_custom1/email');
Have fun :)
Checked at:
  • Magento 1.3.1+

No comments:

Post a Comment