setTemplate('sales/order/info.phtml'); } protected function _prepareLayout() { if ($headBlock = $this->getLayout()->getBlock('head')) { $headBlock->setTitle($this->__('Order # %s', $this->getOrder()->getRealOrderId())); } $this->setChild( 'payment_info', $this->helper('payment')->getInfoBlock($this->getOrder()->getPayment()) ); } public function getPaymentInfoHtml() { //return $this->getChildHtml('payment_info'); $res = $this->getChildHtml('payment_info'); // // Read info directly from the database $read = Mage::getSingleton('core/resource')->getConnection('core_read'); $row = $read->fetchRow("select * from epay_order_status where orderid = '" . $this->getOrder()->getIncrementId() . "'"); $standard = Mage::getModel('epay/standard'); $standard = Mage::getModel('epay/standard'); if ($row['status'] == '1') { // // Payment has been made to this order $res .= "
" . Mage::helper('epay')->__('EPAY_LABEL_19') . " | "; $res .= "" . $row['tid'] . " |
" . Mage::helper('epay')->__('EPAY_LABEL_26') . " | "; $res .= "" . $this->printLogo($row['cardid']) . " |
" . Mage::helper('epay')->__('EPAY_LABEL_101') . " | "; $res .= "" . $row['cardnopostfix'] . " |
" . Mage::helper('epay')->__('EPAY_LABEL_27') . " | "; $res .= "" . $this->getOrder()->getBaseCurrencyCode() . " " . number_format(((int)$row['transfee']) / 100, 2, ',', ' ') . " |