Page 8 of 13 FirstFirst ... 678910 ... LastLast
Results 71 to 80 of 123
  1. #71
    Join Date
    Mar 2015
    Location
    Hong Kong
    Posts
    32
    Plugin Contributions
    0

    Default Re: Direct Bank Deposit

    Quote Originally Posted by frank18 View Post
    Just upgraded a site to 1.5.4 running on PHP 5.4.39 and had this error whilst testing:



    To fix this open your /includes/modules/payment/dirbankaus.php

    Change

    PHP Code:
    // class methods 
        
    function update_status() { 
          global 
    $order$db
     
          if ( (
    $this->enabled == true) && ((int)MODULE_PAYMENT_DIRBANKAUS_ZONE 0) ) { 
            
    $check_flag false
    to this

    PHP Code:
    // class methods 
        
    function update_status() { 
          global 
    $order$db
           
          if (
    $this->enabled && (int)MODULE_PAYMENT_DIRBANKAUS_ZONE && isset($order->billing['country']['id'])) { 
            
    $check_flag false
    Note that I am in Australia, if you are using the USA equivalent replace DIRBANKAUS with DIRBANKUSA and similar for other countries.
    Just noticed "zone" and "billing country" from the codes above. Does it check the customers' addresses before allowing customers to check out using this payment option? Or does it check where I am located? I'm in Hong Kong and my customers are also in Hong Kong. I think there isn't a Hong Kong version of Direct Bank Deposit, is there? I originally planned to use the New Zealand version since the info displayed is the same as that is required for Hong Kong bank account transfers and I would just change the name of the payment method displayed in:

    1. order confirmation page by changing:
    includes\languages\english\modules\payment\dirbanknz.php:
    define('MODULE_PAYMENT_DIRBANKNZ_TEXT_TITLE', 'Direct Bank Deposit - NZ');
    change to:
    define('MODULE_PAYMENT_DIRBANKNZ_TEXT_TITLE', 'Direct Bank Deposit - HK');

    2. order confirmation email (changing 'Direct Bank Deposit - NZ' to 'Direct Bank Deposit - HK' but haven't found out how to do that yet. some advice would be appreciated.)

    I thought I would be able to use the NZ version of this payment module though my customers and I are actually in Hong Kong after making the above changes. Does it work like that? Does it help if I set my Store Zone as “None” and leave my Store Address blank in my Admin Settings?

    Thanks.
    Last edited by jolliejollie; 13 Apr 2015 at 04:04 PM.

  2. #72
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Direct Bank Deposit

    Quote Originally Posted by jolliejollie View Post
    Just noticed "zone" and "billing country" from the codes above. Does it check the customers' addresses before allowing customers to check out using this payment option? Or does it check where I am located? I'm in Hong Kong and my customers are also in Hong Kong. I think there isn't a Hong Kong version of Direct Bank Deposit, is there? I originally planned to use the New Zealand version since the info displayed is the same as that is required for Hong Kong bank account transfers and I would just change the name of the payment method displayed in:

    1. order confirmation page by changing:
    includes\languages\english\modules\payment\dirbanknz.php:
    define('MODULE_PAYMENT_DIRBANKNZ_TEXT_TITLE', 'Direct Bank Deposit - NZ');
    change to:
    define('MODULE_PAYMENT_DIRBANKNZ_TEXT_TITLE', 'Direct Bank Deposit - HK');

    2. order confirmation email (changing 'Direct Bank Deposit - NZ' to 'Direct Bank Deposit - HK' but haven't found out how to do that yet. some advice would be appreciated.)

    I thought I would be able to use the NZ version of this payment module though my customers and I are actually in Hong Kong after making the above changes. Does it work like that? Does it help if I set my Store Zone as “None” and leave my Store Address blank in my Admin Settings?

    Thanks.
    In its simplest form this mod doesn't check anything at all.
    It provides a way to present the website bank details to the customer as a form of payment.
    It also doesn't check if the payment was made or anything else.

    So, Yes the NZ version should work just fine.

    If you do want to restrict it to certain customers or certain countries?
    Then that will require more coding

  3. #73
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Direct Bank Deposit

    Quote Originally Posted by gilby View Post
    ....
    If you do want to restrict it to certain customers or certain countries?
    Then that will require more coding
    Restriction to certain countries is done in the admin, you simply set Payment Zone to Australia, Hong Kong or whatever. Does not require extra coding.

    Restricting to specific customers - yes, that does require a hack.

  4. #74
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Direct Bank Deposit

    Quote Originally Posted by frank18 View Post
    Restriction to certain countries is done in the admin, you simply set Payment Zone to Australia, Hong Kong or whatever. Does not require extra coding.

    Restricting to specific customers - yes, that does require a hack.
    Indeed, the country can be set in the admin. (I have been using it for years and haven't needed to change that)

  5. #75
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Direct Bank Deposit

    For anyone interested in this payment module, it can be downloaded here

  6. #76
    Join Date
    Dec 2005
    Posts
    8
    Plugin Contributions
    0

    Default Re: Direct Bank Deposit

    I have installed Direct Bank Deposit 1.5.3 for AUS. Installed and works fine. However in the email order confirmation the font for the bank details etc is like a Times New Roman font rather than Arial like the rest of the email content.

    How do you change the font for the DBD text in the order confirmation email?

  7. #77
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Direct Bank Deposit

    Quote Originally Posted by blueskyhigh View Post
    I have installed Direct Bank Deposit 1.5.3 for AUS. Installed and works fine. However in the email order confirmation the font for the bank details etc is like a Times New Roman font rather than Arial like the rest of the email content.

    How do you change the font for the DBD text in the order confirmation email?
    Did you install/upload all files in that package?

    If so, can you give us a link or screenshot?

  8. #78
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Direct Bank Deposit

    Quote Originally Posted by frank18 View Post
    For anyone interested in this payment module, it can be downloaded here
    Mod needs to be upgraded for 154 as per #67.

    Since this is a payment module, I am interested to know for the update_status function of includes\modules\payment\dirbankaus.php whether:
    1) "delivery" should be changed to "billing"
    2) and the code that checks for "virtual products" should be removed

    such that replace

    Code:
        function update_status() {
          global $order, $db;
    
          if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_DIRBANKAUS_ZONE > 0) ) {
            $check_flag = false;
            $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_DIRBANKAUS_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
            while (!$check->EOF) {
              if ($check->fields['zone_id'] < 1) {
                $check_flag = true;
                break;
              } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
                $check_flag = true;
                break;
              }
              $check->MoveNext();
            }
    
            if ($check_flag == false) {
              $this->enabled = false;
            }
          }
    // disable the module if the order only contains virtual products
          if ($this->enabled == true) {
            if ($order->content_type == 'virtual') {
              $this->enabled = false;
            }
          }
        }
    with

    Code:
        function update_status() {
          global $order, $db;
          if ($this->enabled && (int)MODULE_PAYMENT_DIRBANKAUS_ZONE > 0 && isset($order->billing['country']['id'])) {
            $check_flag = false;
            $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_DIRBANKAUS_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");
            while (!$check->EOF) {
              if ($check->fields['zone_id'] < 1) {
                $check_flag = true;
                break;
              } elseif ($check->fields['zone_id'] == $order->billing['zone_id']) {
                $check_flag = true;
                break;
              }
              $check->MoveNext();
            }
    
            if ($check_flag == false) {
              $this->enabled = false;
            }
          }
    // disable the module if the order only contains virtual products
    //      if ($this->enabled == true) {
    //        if ($order->content_type == 'virtual') {
    //          $this->enabled = false;
    //        }
    //      }
        }
    Last edited by dw08gm; 23 Dec 2015 at 06:44 AM. Reason: coloring

  9. #79
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Direct Bank Deposit

    link to this or a new support thread needs to be added to downloads page for this plugin

  10. #80
    Join Date
    Feb 2016
    Location
    Canada
    Posts
    142
    Plugin Contributions
    0

    Default Re: Direct Bank Deposit

    Has anyone used this for Canada?

 

 
Page 8 of 13 FirstFirst ... 678910 ... LastLast

Similar Threads

  1. v154 Module for Paying Bill through Bank Account / Direct Bank Deposit
    By jolliejollie in forum Addon Payment Modules
    Replies: 0
    Last Post: 23 Mar 2015, 06:04 PM
  2. v151 Direct Bank Deposit V1.5.2 - Modification
    By bruce429 in forum Addon Payment Modules
    Replies: 2
    Last Post: 24 May 2014, 04:33 AM
  3. Installing Direct Bank Deposit Module
    By AirNewZealand15 in forum Addon Payment Modules
    Replies: 11
    Last Post: 5 May 2011, 09:11 PM
  4. Direct Bank Deposit - Can I add more than 1 bank account?
    By wanor in forum Addon Payment Modules
    Replies: 0
    Last Post: 27 Oct 2010, 05:56 PM
  5. Direct Bank Deposit module on 1.3.0.2
    By robax in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 27 Aug 2006, 12:31 AM

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