Exemple #1
0
 /**
  * Retreive input fields
  *
  * @return array
  */
 public function getFields()
 {
     $fields = parent::getFields();
     $fields['paypal_email'] = array('type' => 'text', 'after_element_html' => '<a href="http://www.magentocommerce.com/paypal" target="_blank">Start accepting payments via PayPal!</a><script type="text/javascript"> setTimeout(\'if(document.getElementById("' . $this->getCode() . $this->getCodeSeparator() . 'active").value == "1") { document.getElementById("' . $this->getCode() . $this->getCodeSeparator() . 'paypal_email").className = "required-entry validate-email input-text";}\',500);</script>');
     if (isset($fields['active']) && isset($fields['paypal_email'])) {
         $fields['active']['onchange'] = "if(this.value == '1') { document.getElementById('" . $this->getCode() . $this->getCodeSeparator() . "paypal_email').className = 'required-entry validate-email input-text';} else { document.getElementById('" . $this->getCode() . $this->getCodeSeparator() . "paypal_email').className = 'input-text'; } ";
     }
     return $fields;
 }
Exemple #2
0
 /**
  * Retreive input fields
  *
  * @return array
  */
 public function getFields()
 {
     $fields = parent::getFields();
     $fields['bank_name'] = array('type' => 'text');
     $fields['bank_branch_number'] = array('type' => 'text');
     $fields['bank_swift_code'] = array('type' => 'text');
     $fields['bank_account_name'] = array('type' => 'text');
     $fields['bank_account_number'] = array('type' => 'text');
     return $fields;
 }
Exemple #3
0
 /**
  * Retreive input fields
  *
  * @return array
  */
 public function getFields()
 {
     $fields = parent::getFields();
     $fields['cheque_payee_name'] = array('type' => 'text');
     return $fields;
 }