Magento News

 

get magento module config data in Observer

Hi guys,
I created a module with an observer for the sales module with event hook ‘sales_order_shipment_save_after’ ,

My module has the following files

  1. Company/Modulename/etc/config.xml
  2. Company/Modulename/etc/system.xml
  3. Company/Modulename/Model/Observer.php

there are four fields in the modules admin configuration fields
I want to get those saved data in the Observer class.

using $this->getConfigData(’password’); gives a

Call to undefined method

error
Any suggestions?

get magento module config data in Observer

Possibly Related Posts:


 

Leave a Reply