I have a requirement where I need to add my custom discount block only if the discount module is enabled from backend. I can obviously add it in using getStoreConfig() values, but I need to know is it possible to add IFCONFIG in our modules etc/config.xml file ?
Below is my sample config.xml file code but somehow its not working.
<global>
<sales>
<quote>
<totals>
<testing ifconfig="mysettings/foo/sayhello">
<class>NameSpace_ModuleName_Model_Testing</class>
<after>subtotal</after>
</testing>
</totals>
</quote>
</sales>
</global>