Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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

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