New Zenner
- Join Date:
- Aug 2017
- Location:
- Toronto, Ontario, Canada
- Posts:
- 33
- Plugin Contributions:
- 0
Direct Bank Deposit
I downloaded this plugin, but Canada is not listed. Is there an update for Canadian users?
Anthony Ennis
www.novainkjet.com
Views: 78,007
New Zenner
I downloaded this plugin, but Canada is not listed. Is there an update for Canadian users?
Anthony Ennis
www.novainkjet.com
Zen Follower
I have clients in Canada that use email money transfer successfully. We cloned the zen check/money order payment module in each cart regardless of version and made the edits needed.
Trinity
Many thanks for a high-fiver!
New Zenner
Hello, Please I need Ghana version of this module. Am using zencart 1.5.5f and our banking details for local deposit and international deposit are just below.
Account Name:
Routing Number:
Bank Name:
Account Number:
SWIFT Code:
Copy the includes folder for your country to the root of your Zen Cart store (This section confuses me so kindly direct me as to where to find this root of the store since when I click on my public html and my zencart store, there is an include folder already).
New Zenner
I have Zen cart 1.5.6b with PHP 7.3 and getting the below warning
[23-Jun-2019 13:53:33 Australia/Melbourne] Request URI: /xxxx/orders.php?cID=20525&page=1&oID=20993&action=edit, IP address: 49.197.64.63
#1 dirbankaus->update_status() called at [/home/x/public_htmlxxx/includes/modules/payment/dirbankaus.php:41]
#2 dirbankaus->dirbankaus() called at [/home/xxxx/public_html/gdadmin/orders.php:420]
--> PHP Warning: Illegal string offset 'id' in /home/xxxxx/public_html/includes/modules/payment/dirbankaus.php on line 50.
line 50 dirbankaus.php is below:
$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");
From my reading I don't think this error can be fixed in line 50. It might need to be fixed in line 41 below?:
if (is_object($order)) $this->update_status();
Zen Follower
I'll try and add Japanese bank transfer (local, not international) support to the module and report back.
What I want/need:
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0
Zen Follower
I'm going to start hacking at the code, the Indian bank account support appears most close to what I need for Japan (and South Africa for that matter). I'm also interested in supporting multiple bank accounts, not sure from the description whether only one account is currently supported. Will see..
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0
Zen Follower
I've hacked up a version for Japan, see attachment. Would work for any other country that has similar settings, or can remove/comment out as needed.
I've made it support up to two extra (total three) accounts, optionally settable in the module settings. Makes the description and text message creation a bit harder, have to stitch it together in the module code rather than just reading in descriptions from the language files.
Hope it is useful, of course any improvements/suggestions by the maintainer or other members would be much appreciated as well.
The fields I defined:
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0
Zen Follower
Updated: added Japanese language file, removed temporary files left in accidentally, arranged columns with spaces.
Note: could not figure out how to delete old upload, really just want to replace the previous one.
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0
Zen Follower
I do have a question, could be answered generally, but specifically in regard to this module, where the parameters for accounts are directly entered into the configuration DB: how would it be possible to make the module multilingual?
The configure table does not have a language parameter as far as I can tell. So with the current setup, I imagine one could do it like this, as a workable hack:
A more thorough way, which would involve re-writing the module, might be to use specific tables for the module, one or more as required could have language parameters.
Any advice most appreciated. I am happy to work on a long-term solution, but a short-term solution (let's say, for users who only need 2 languages) would be fine for now also.
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0
Zen Follower
Hi all,
I've gone ahead and added Japanese versions of bank name, branch name, account type, and account holder name, to the configuration.
And 3 accounts in total.
Attachment #18571
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0
Zen Follower
Hi - I wonder if there is any way to have the Direct Bank transfer for Australia behave the same as for New Zealand ?
I do not require or want cheques and money orders - or the email notification - just the "Please use the following details to transfer your total order value"
Many Thanks for any guidance on this issue...
Totally Zenned
For anyone trying to install this when running later versions of PHP it seems you need to make the following change.
\includes\modules\payment\dirbank.php
class dirbank {
var $code, $title, $description, $enabled;
// class constructor
function dirbank() {
global $order;
Needs to be changed to
class dirbank {
var $code, $title, $description, $enabled;
// class constructor
function __construct() {
global $order;
Zen Follower
Brent:
For anyone trying to install this when running later versions of PHP it seems you need to make the following change.
class dirbank {
var $code, $title, $description, $enabled;
// class constructor
function dirbank() {
global $order;
>
> Needs to be changed to
>
> ```php
class dirbank {
var $code, $title, $description, $enabled;
// class constructor
function __construct() {
global $order;
Hmmm... my version I downloaded already has this in it for 1.5.7, it appears to have installed okay except that it's not showing up for my customers in the cart.... anyone got any suggestions as to what I may have missed....?
Elemi
The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz
Zen Follower
Have you installed it under Admin Payment Modules so it is showing a green button?
I'm using v1.5.3 Aus version with zc157a in test.
If you receive an error re indexes customer_id and customer_last_name not defined I placed
// Undefined index: customer_id, customer_last_name bof
@$id=$_SESSION['customer_id'];
@$ln=$_SESSION['customer_last_name'];
// eof
at the beginning of the code in includes/languages/english/modules/payment/dirbankaus.php
environment Test: Zen Cart 157a; Apache 2.4.46; PHP 7.4.9; MySQL 5.7.31; Windows 10
OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB
Zen Follower
Yes, I have the green light showing on the admin page. It doesn't show on the payment options page at all for the customer.... I'm on 1.5.7
Elemi
The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz
Zen Follower
Hmmm... it's a zone thing... it will only accept one of my zones, not the New Zealand Zone...
Elemi
The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz
Zen Follower
Dirbank is tied to the Tax Rates defined under Admin | Locations /Taxes | Tax Rates.
The zones referenced are under Admin | Locations/Taxes | Zone Definitions - Taxes, Payment and Shipping
I have created two zones:
first zone is: zone Name = "Australia", Description = "Australia - GST";
under Details: Country=Australia, Zone= All zones
under Tax Rate: Priority=1, Tax Class Title=GST, Zone=Australia [note this references the Zone under zone definitions], tax Rate=10, Description = GST
second zone is: zone-name= "Outside Aus", Description =World-excluding Australia"
under Details: Country= every country except Australia, Zone= All zones
under Tax Rate: Priority=0, Tax Class Title=No Tax, Zone=Outside Aust [note this references the Zone under zone definitions], tax Rate=0, Description = GST Free
So if you have two countries with the same tax rate you can combine them into one Zone.
There must be a green dot against the entries in Zone Definitions - Taxes, Payment and Shipping
Under Admin | Configuration | My Store I have
Basis of Product Tax = Shipping. and
Basis of Shipping Tax = Shipping
so Zen Cart will add tax based on shipping address. Aus customers see Dirbank, Customers outside Aus don't see Dirbank.
OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB
Totally Zenned
1.5.7b PHP 7.3.25 MySQL 5.7.32
OPC
Edit Orders
PayPal Express
Zone Shipping
No other Payment or Shipping Mods Installed
Using dirbanknz.php
Warning log[05-Jan-2021 13:36:10 US/Central] Request URI: /******/index.php?cmd=orders&page=1&oID=1596&action=update_order&language=NZ, IP address: 122.##.###.### #1 dirbanknz->update_status() called at [/includes/modules/payment/dirbanknz.php:41] #2 dirbanknz->__construct() called at [/******/orders.php:266] #3 require(/******/orders.php) called at [/******/index.php:11] --> PHP Warning: Illegal string offset 'id' in /includes/modules/payment/dirbanknz.php on line 50.Latest code from download of file```
// class methods function update_status() {
global $order, $db;
if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_DIRBANKNZ_ZONE > 0) ) {
$check_flag = false;
$check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_DIRBANKNZ_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;
}
}
Assuming the item in red is the problem but not sure of the solution.
Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com
Sensei
dbltoe:
1.5.7b PHP 7.3.25 MySQL 5.7.32
OPC
Edit Orders
PayPal Express
Zone Shipping
No other Payment or Shipping Mods InstalledUsing dirbanknz.php
Warning log
[05-Jan-2021 13:36:10 US/Central] Request URI: /******/index.php?cmd=orders&page=1&oID=1596&action=update_order&language=NZ, IP address: 122.##.###.### #1 dirbanknz->update_status() called at [/includes/modules/payment/dirbanknz.php:41] #2 dirbanknz->__construct() called at [/******/orders.php:266] #3 require(/******/orders.php) called at [/******/index.php:11] --> PHP Warning: Illegal string offset 'id' in /includes/modules/payment/dirbanknz.php on line 50.Latest code from download of file```
// class methods function update_status() {
global $order, $db;
if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_DIRBANKNZ_ZONE > 0) ) {
$check_flag = false;
$check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_DIRBANKNZ_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;
}
}
> Assuming the item in red is the problem but not sure of the solution.
2 tips:
1. If this store is using this module for "all addresses", eg no zone restrictions, you could just put "return;" as the first line of the update_status() function and skip that part altogether.
2. The parameters passed to the zone lookup query in many older shipping/payment modules' update_status() functions are quite possibly incorrect. Compare with the update_status() function in current built-in shipping/payment modules to see what may be incorrect. It's also easy to test whether the change you make has any undesired side-effects: just test whether the module works both with and without zone restrictions applied for a given address.
.
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.
New Zenner
Tell staff why this post should be reviewed.