How to get data from Magento System Configuration

后端 未结 4 1122
清酒与你
清酒与你 2021-01-30 05:19

I just wandering on how I can get the configuration data for my custom module. The configuration can be set from the admin system->configuration and how to pull

4条回答
  •  感动是毒
    2021-01-30 05:36

    for example if you want to get EMAIL ADDRESS from config->store email addresses. You can specify from wich store you will want the address:

    $store=Mage::app()->getStore()->getStoreId(); 
    /* Sender Name */
    Mage::getStoreConfig('trans_email/ident_general/name',$store); 
    /* Sender Email */
    Mage::getStoreConfig('trans_email/ident_general/email',$store);
    

提交回复
热议问题