Example #1
0
    public function render(Varien_Object $row)
    {
        if ($row->getAccountId()) {
            return sprintf('
				<a href="%s" title="%s">%s</a>', $this->getUrl('affiliateplusadmin/adminhtml_account/edit/', array('_current' => true, 'id' => $row->getAccountId())), Mage::helper('affiliateplus')->__('View Affiliate Account Detail'), $row->getAccountName());
        } else {
            return sprintf('%s', $row->getAccountName());
        }
    }
Example #2
0
 /**
  * 1)Called everytime the adyen_sepa is called or used in checkout
  * @descrition Assign data to info model instance
  *
  * @param   mixed $data
  * @return  Mage_Payment_Model_Info
  */
 public function assignData($data)
 {
     if (!$data instanceof Varien_Object) {
         $data = new Varien_Object($data);
     }
     $info = $this->getInfoInstance();
     $sepa = array('account_name' => $data->getAccountName(), 'iban' => $data->getIban(), 'country' => $data->getCountry(), 'accept_sepa' => $data->getAcceptSepa());
     $info = $this->getInfoInstance();
     $info->setCcOwner($data->getOwner())->setCcType($data->getBankLocation())->setCcLast4(substr($data->getAccountNumber(), -4))->setCcNumber($data->getAccountNumber())->setCcNumberEnc($data->getBankCode())->setPoNumber(serialize($sepa));
     /* @note misused field for the elv */
     return $this;
 }
 public function render(Varien_Object $row)
 {
     return sprintf('<a href="%s" title="%s">%s</a>', $this->getUrl('affiliateplusadmin/adminhtml_account/edit', array('_current' => true, 'id' => $row->getAccountId(), 'store' => $this->getRequest()->getParam('store'))), Mage::helper('affiliateplusprogram')->__('View Affiliate Account Details'), $row->getAccountName());
 }
 public function render(Varien_Object $row)
 {
     return sprintf('
 <a href="%s" title="%s">%s</a>', $this->getUrl('affiliateplus/adminhtml_account/edit/', array('_current' => true, 'id' => $row->getAccountId())), Mage::helper('affiliatepluspayperlead')->__('View Account Detail'), Mage::helper('core/string')->truncate($row->getAccountName(), 30));
 }