Beispiel #1
0
 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $this->_config = Mage::getModel('paypalmx/config')->setMethod($this->getMethodCode());
     $locale = Mage::app()->getLocale();
     $mark = Mage::getConfig()->getBlockClassName('core/template');
     $mark = new $mark();
     $mark->setTemplate('paypalmx/payment/mark.phtml')->setPaymentAcceptanceMarkHref($this->_config->getPaymentMarkWhatIsPaypalUrl($locale))->setPaymentAcceptanceMarkSrc($this->_config->getPaymentMarkImageUrl($locale->getLocaleCode()))->setNoPosAH($this->_config->getnoposah());
     // known issue: code above will render only static mark image
     $this->setTemplate('paypalmx/payment/redirect.phtml')->setMethodTitle('')->setMethodLabelAfterHtml($mark->toHtml());
     return parent::_construct();
 }