Direct Bank Deposit for Zen Cart v1.5.4
Hi. I'm using Zen Cart v1.5.4. I noticed Direct Bank Deposit - Version 1.5.2 contributed by nigelt74 below is for Zen Cart v1.3.9, v1.5.0 and v1.5.1.
http://www.zen-cart.com/downloads.php?do=file&id=60
I wonder if it's compatible with Zen Cart v1.5.4 as well? If not, is there one that can be used by Zen Cart v1.5.4? Or is there a similar module that can be used instead? I'll be using local bank transfer as the only payment method.
Thanks.
Re: Direct Bank Deposit for Zen Cart v1.5.4
Quote:
Originally Posted by
jolliejollie
Hi. I'm using Zen Cart v1.5.4. I noticed Direct Bank Deposit -
Version 1.5.2 contributed by nigelt74 below is for Zen Cart v1.3.9, v1.5.0 and v1.5.1.
http://www.zen-cart.com/downloads.php?do=file&id=60
I wonder if it's compatible with Zen Cart v1.5.4 as well? If not, is there one that can be used by Zen Cart v1.5.4? Or is there a similar module that can be used instead? I'll be using local bank transfer as the only payment method.
Thanks.
It works with ZC 1.5.4 - have used it for years and upgraded 3 stores through the "ranks" (versions) without problems.
Just apply the fix I have posted above and you won't get any errors.
Re: Direct Bank Deposit for Zen Cart v1.5.4
Quote:
Originally Posted by
frank18
It works with ZC 1.5.4 - have used it for years and upgraded 3 stores through the "ranks" (versions) without problems.
Just apply the fix I have posted above and you won't get any errors.
Is it just this fix below I have to apply?
Quote:
Originally Posted by
frank18
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 > 0 && 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.