*/ class Mage_XmlConnect_Block_Checkout_Order_Review extends Mage_Checkout_Block_Onepage_Review { /** * Render order review xml * * @return string */ protected function _toHtml() { $orderXmlObj = Mage::getModel('xmlconnect/simplexml_element', ''); /** * Order items */ $products = $this->getChildHtml('order_products'); if ($products) { $productsXmlObj = Mage::getModel('xmlconnect/simplexml_element', $products); $orderXmlObj->appendChild($productsXmlObj); } /** * Totals */ $totalsXml = $this->getChildHtml('totals'); if ($totalsXml) { $totalsXmlObj = Mage::getModel('xmlconnect/simplexml_element', $totalsXml); $orderXmlObj->appendChild($totalsXmlObj); } /** * Agreements */ $agreements = $this->getChildHtml('agreements'); if ($agreements) { $agreementsXmlObj = Mage::getModel('xmlconnect/simplexml_element', $agreements); $orderXmlObj->appendChild($agreementsXmlObj); } return $orderXmlObj->asNiceXml(); } }