/** * Render block HTML * If method is not directpost - nothing to return * * @return string */ protected function _toHtml() { if ($this->getMethod()->getCode() != Mage::getSingleton('authorizenet/directpost')->getCode()) { return null; } return parent::_toHtml(); }