Try the Demo

Magento Forum

   
Help reading correct config node
 
Tweakmag
Guru
 
Avatar
Total Posts:  307
Joined:  2007-08-31
London, UK
 

Hi there,
I am currently writing a custom payment method and have a problem with:

Mage::getConfig()->getNode('global/payment/cc/types')->asArray()

now in my config.xml I have set the appropriate cc types, however it is still loading from core/mage/payment rather than my new extension.

The call is specifically being called from

class Tweakmag_Payment_Model_Method_Eway_Config extends Mage_Payment_Model_Config

So I guess the question is how do I tell it to use my config.xml to get the cc types?

Cheers
Adam

P.S Sorry if this is not a clear explanation

 Signature 

adam martin: ecommerce consultant / magento developer
contact | adam.martin@tweakmag.com
http://www.tweakmag.com - For all your magento needs, from ongoing support to custom development

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top