Zen Cart Logo
Forums / Addon Payment Modules / Direct bank deposit module - How to uncomment?

Direct bank deposit module - How to uncomment?

Locked

Views: 795

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
25 Nov 2010, 8:12 AM
#1
corditreasures avatar

corditreasures

Zen Follower

Join Date:
Jan 2010
Posts:
141
Plugin Contributions:
0

Direct bank deposit module - How to uncomment?

could somebody help me with this code? I really can't understand it. what should i remove? I tried many times but whenever i remove something theres an error in my payment module in the admin area. I tried to replace it with the old code but still error shows. I want to enable swift code.

There are two instructions

The following code block comments out the the swift code bit which is only needed for international money transfers.
// Uncomment it if you need to do international transfers.

if you uncomment it... here is another instruction... waah... i can't figure it :no:

The Following Block was commented out as a copy of the original code before I edited out the Swift Code bit.
// Uncomment it if you need to do international transfers. and then delete the bit of code above. :)
// The following code block comments out the the swift code bit which is only needed for international money transfers.
// Uncomment it if you need to do international transfers.
// David Buckley 1st March 2009 
//     $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Swift Code.', 'MODULE_PAYMENT_DIRBANK_SWIFT', '12345678', 'Swift Code.', '6', '1', now());");
     $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Account Name', 'MODULE_PAYMENT_DIRBANK_ACCNAM', 'Joe Bloggs', 'Bank account name', '6', '1', now());");
     $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Name', 'MODULE_PAYMENT_DIRBANK_BANKNAM', 'The Bank', 'Bank Name', '6', '1', now());");
     $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_DIRBANK_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())");
   }

    function remove() {
      global $db;
      $db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
    }

    function keys() {
	  return array('MODULE_PAYMENT_DIRBANK_STATUS', 'MODULE_PAYMENT_DIRBANK_ZONE', 'MODULE_PAYMENT_DIRBANK_SORT_ORDER', 'MODULE_PAYMENT_DIRBANK_BSB', 'MODULE_PAYMENT_DIRBANK_ACCNUM', 'MODULE_PAYMENT_DIRBANK_ACCNAM', 'MODULE_PAYMENT_DIRBANK_BANKNAM', 'MODULE_PAYMENT_DIRBANK_ORDER_STATUS_ID');
    }
// The Following Block was commented out as a copy of the original code before I edited out the Swift Code bit.
// Uncomment it if you need to do international transfers. and then delete the bit of code above. :)
// David Buckley 1st March 2009 
//    function keys() {
//	  return array('MODULE_PAYMENT_DIRBANK_STATUS', 'MODULE_PAYMENT_DIRBANK_ZONE', 'MODULE_PAYMENT_DIRBANK_SORT_ORDER', 'MODULE_PAYMENT_DIRBANK_BSB', 'MODULE_PAYMENT_DIRBANK_ACCNUM', 'MODULE_PAYMENT_DIRBANK_ACCNAM', 'MODULE_PAYMENT_DIRBANK_SWIFT', 'MODULE_PAYMENT_DIRBANK_BANKNAM', 'MODULE_PAYMENT_DIRBANK_ORDER_STATUS_ID');
//    }
  }
?>