Magento: How to save data to order_payment and quote_payment

前端 未结 1 1287
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-28 01:46

I\'m trying to have a custom credit card payment attribute save to two different tables but I\'m not sure how to do this.

The normal credit card information saves to two

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-28 02:09

    Did you configure Magento to convert the new attribute from quote to order? If you check the config.xml from the Mage_Sales module and search for sales_convert_quote_payment. You see something as follows:

           
                *
                *
                *
                *
                *
                *
                *
                *
                *
                *
    
                *
                *
    
                *
                *
                *
            
    

    Magento uses these fieldsets to transport data from entity to entity. In this case from the quote_payment to the order_payment.

    Since all config XML is merged into one big heap of XML, you can add additional nodes from your own modules config.xml. Something like:

    
        
            
                *
            
        
    
    

    Hope this helps you get underway.

    0 讨论(0)
提交回复
热议问题