protected function _beforeToHtml() { if (!$this->getParentBlock()) { Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block')); } parent::_beforeToHtml(); }
public function setPayment($payment) { parent::setPayment($payment); $paymentInfoBlock = Mage::helper('payment')->getInfoBlock($payment); if ($payment->getMethod() == 'cardsaveonlinepayments') { $paymentInfoBlock->setTemplate('payment/info/cc_cardsaveonlinepayments.phtml'); } $this->setChild('info', $paymentInfoBlock); $this->setData('payment', $payment); return $this; }
public function setPayment($payment) { parent::setPayment($payment); $paymentInfoBlock = Mage::helper('payment')->getInfoBlock($payment); if ($payment->getMethod() == 'paymoto' || $payment->getMethod() == 'payhosted' || $payment->getMethod() == 'pay') { $paymentInfoBlock->setTemplate('payment/info/paymentinfo.phtml'); } $this->setChild('info', $paymentInfoBlock); $this->setData('payment', $payment); return $this; }
protected function _construct() { parent::_construct(); $this->setTemplate('emjainteractive/purchaseordermanagement/sales/order/view/payment/capture.phtml'); }
protected function _toHtml() { return parent::_toHtml() . $this->getChildHtml('payin7_js_bootstrap') . $this->getChildHtml('payin7_info'); }