*/ class Mage_XmlConnect_Block_Checkout_Payment_Method_Info_Checkmo extends Mage_Payment_Block_Info_Checkmo { /** * Add Check / Money order info to order XML object * * @param Mage_XmlConnect_Model_Simplexml_Element $orderItemXmlObj * @return Mage_XmlConnect_Model_Simplexml_Element */ public function addPaymentInfoToXmlObj(Mage_XmlConnect_Model_Simplexml_Element $orderItemXmlObj) { $orderItemXmlObj->addAttribute('type', $this->getMethod()->getCode()); $orderItemXmlObj->addAttribute( 'title', $orderItemXmlObj->xmlAttribute($this->getMethod()->getTitle()) ); if ($this->getInfo()->getAdditionalData()) { if ($this->getPayableTo()) { $orderItemXmlObj->addCustomChild('item', $this->getPayableTo(), array( 'label' => Mage::helper('sales')->__('Make Check payable to:') )); } if ($this->getMailingAddress()) { $orderItemXmlObj->addCustomChild('item', $this->getMailingAddress(), array( 'label' => Mage::helper('payment')->__('Send Check to:') )); } } } }