getInfoBlock($payment); if ($payment->getMethod() == 'cardsaveonlinepayments') { $paymentInfoBlock->setTemplate('payment/info/cc_cardsaveonlinepayments.phtml'); } $this->setChild('info', $paymentInfoBlock); $this->setData('payment', $payment); return $this; } protected function _toHtml() { return $this->getChildHtml('info'); } }