Thread: Bank Transfer

Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Bank Transfer

    Quote Originally Posted by DrByte View Post
    When you go to Admin->Modules->Payment, and click on DirBankAus, and Edit, is there an Address and Payable field available in that list of configuration settings?
    No, not exactly in this sense.

    What is available (and that is all that's needed) are these fields:

    Payment Zone (selector, should be set to Australia only)
    Sort order of display
    BSB Number
    Bank Account No.
    Bank Account Name
    Swift Code (not necessary within AUS)
    Bank Name
    Order Status (selector - mostly 'Pending' or whatever has been configured elsewhere)

  2. #12
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Bank Transfer

    Quote Originally Posted by frank18 View Post
    No, not exactly in this sense.

    What is available (and that is all that's needed) are these fields:

    Payment Zone (selector, should be set to Australia only)
    Sort order of display
    BSB Number
    Bank Account No.
    Bank Account Name
    Swift Code (not necessary within AUS)
    Bank Name
    Order Status (selector - mostly 'Pending' or whatever has been configured elsewhere)
    No, because the language file is looking for the two configuration constants for the footer text.

    I suppose you could just delete the two lines from the language file which look for those constants, or replace them with the actual address/payable info directly in the language file instead of calling the constants:
    Code:
      define('MODULE_PAYMENT_DIRBANKAUS_TEXT_EMAIL_FOOTER',   "Please use the following details to transfer your total order value:\n\n" .
      "\nAccount No.:  " . MODULE_PAYMENT_DIRBANKAUS_ACCNUM .
      "\nBSB Number:   " . MODULE_PAYMENT_DIRBANKAUS_BSB . 
      "\nAccount Name: " . MODULE_PAYMENT_DIRBANKAUS_ACCNAM . 
      "\nBank Name:    " . MODULE_PAYMENT_DIRBANKAUS_BANKNAM .
      "\nSwift Code:   " . MODULE_PAYMENT_DIRBANKAUS_SWIFT . 
      "\nReference:    "  . $ln ."-" . $id . "-%s" .
      "\n\nSend Cheques/Money Orders To:    " . MODULE_PAYMENT_DIRBANKAUS_ADDRESS . 
      "\nCheques/Money Orders Payable To:   " . MODULE_PAYMENT_DIRBANKAUS_PAYABLE .
      "\n\nThanks for your order which will ship immediately once we receive payment in the above account.\n");

    Update:
    Posting this for reference only:
    Code:
         $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Address', 'MODULE_PAYMENT_DIRBANKAUS_ADDRESS', '44 Australia St. Sydney 2000','Address to send cheques/money orders.','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 ('Payable', 'MODULE_PAYMENT_DIRBANKAUS_PAYABLE', 'Joes Shop','Cheques/Money Orders Payable to:','6','1',now());");
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #13
    Join Date
    Sep 2008
    Location
    Perth, Australia
    Posts
    28
    Plugin Contributions
    0

    Default Re: Bank Transfer

    Hi guys,

    I'm using this one s well however I would like to change the reference: which is sent in the email to the order number instead. I see there are a couple of SESSION variables being pulled over in dirbankaus.php for the last name and id of the customer. Is there a way to send the current order number over as well?

    From what I can see there is no session for the $order_id variable?

    thanks.

  4. #14
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Bank Transfer

    The change I posted in #8 specifically passes the order number, after the order number is assigned.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #15
    Join Date
    Sep 2008
    Location
    Perth, Australia
    Posts
    28
    Plugin Contributions
    0

    Default Re: Bank Transfer

    Thanks DrByte.

    I'm a bit confused though? Do I just add it anywhere to /includes/languages/english/modules/payment/dirbankaus.php? or /includes/modules/payment/dirbankaus.php?

  6. #16
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Bank Transfer

    In the language file, from the last posted zip, I see:
    Code:
    $id=$_SESSION['customer_id'];$ln=$_SESSION['customer_last_name'];
    
    
      define('EMAIL_TEXT_NO_DELIVERY',
      '<p>No Delivery, see below:');
      define('MODULE_PAYMENT_DIRBANKAUS_TEXT_EMAIL_FOOTER', 
      "Please use the following details to transfer your total order value:\n\n" .
      "\nAccount No.:  " . MODULE_PAYMENT_DIRBANKAUS_ACCNUM .
      "\nBSB Number:   " . MODULE_PAYMENT_DIRBANKAUS_BSB . 
      "\nAccount Name: " . MODULE_PAYMENT_DIRBANKAUS_ACCNAM . 
      "\nBank Name:    " . MODULE_PAYMENT_DIRBANKAUS_BANKNAM .
      "\nSwift Code:   " . MODULE_PAYMENT_DIRBANKAUS_SWIFT . 
      "\nReference:    "  . $ln ."-" . $id . "-%s" .
      "\n\nSend Cheques/Money Orders To:    " . MODULE_PAYMENT_DIRBANKAUS_ADDRESS . 
      "\nCheques/Money Orders Payable To:   " . MODULE_PAYMENT_DIRBANKAUS_PAYABLE .
      "\n\nThanks for your order which will ship immediately once we receive payment in the above account.\n");
    And the payment module from the same zip, including its various edits to other files, ultimately ends up replacing the %s with the $order_id value.

    If you want the module simplified so it doesn't have to touch other checkout files, I suggested adding the following code into it, which still passes the order_id into the %s position using sprintf():
    Code:
        function after_order_create($order_id) {
          $this->email_footer = sprintf(MODULE_PAYMENT_DIRBANKAUS_TEXT_EMAIL_FOOTER, $order_id);
        }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #17
    Join Date
    Sep 2008
    Location
    Perth, Australia
    Posts
    28
    Plugin Contributions
    0

    Default Re: Bank Transfer

    Brilliant! It's coming through now Thanks once again DrByte

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Eu Standard Bank Transfer
    By Sudakoma in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Sep 2006, 12:01 AM
  2. Danish bank transfer
    By Silo in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 21 Aug 2006, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR