Ejemplo n.º 1
0
 /**
  * Set data to block
  *
  * @return Mage_Core_Block_Abstract
  */
 protected function _beforeToHtml()
 {
     $customerId = Mage::getSingleton('customer/session')->getCustomerId();
     if (Mage::helper('paypalmx')->shouldAskToCreateBillingAgreement($this->_config, $customerId) && $this->canCreateBillingAgreement()) {
         $this->setCreateBACode(Ebcomm_PaypalMx_Model_Debito2_Checkout::PAYMENT_INFO_TRANSPORT_BILLING_AGREEMENT);
     }
     return parent::_beforeToHtml();
 }
Ejemplo n.º 2
0
 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $result = parent::_construct();
     $this->setRedirectMessage(Mage::helper('paypalmx')->__(''));
     return $result;
 }