Magento Forum

   
Get payment $_code in order.php
 
TomSth
Jr. Member
 
Total Posts:  2
Joined:  2009-06-21
 

Hi,
how can i get $_code variable from app/code/core/Mage/Payment/Model/Method/Abstract.php
into /httpdocs/app/code/core/Mage/Sales/Model/Order.php?

I need to get $_code variable, because i need to customize sendNewOrderEmail() function, to send different information for different payment made…

sorry for my poor English language

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brent W Peterson
Moderator
 
Avatar
Total Posts:  3215
Joined:  2009-02-26
Minneapolis MN
 

You could make module and extend that class.  In your new glass you can then call the $_code where you want it. This way you also stay away from modifying any core code

 
Magento Community Magento Community
Magento Community
Magento Community
 
TomSth
Jr. Member
 
Total Posts:  2
Joined:  2009-06-21
 

Good idea, thanks!

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