Skip to main content

Q. What are the common methods with which the framework accesses its configuration values and areas?

getStoreConfig(), getStoreConfigFlag(),
$enable = Mage::getStoreConfig(‘socialrecommend/general/enable’,’default’);
$enable = Mage::app()->getStore()-> getConfig(‘socialrecommend/general/enable’);
$enable = Mage::getConfig()-> getNode(‘socialrecommend/general/enable’,’store’,’default’);
$enable = Mage::getConfig()-> getNode(‘stores/default/socialrecommend/general/enable’);

By Michael Cristancho

I'm a Digital Commerce and Experience evangelist who enjoys engaging in thought-provoking conversation and mutual exploration. I am a strong believer that learning never ends, and each day brings another opportunity to grow as an individual and professional.