During checkout the payment method for Direct Bank Deposit doesn't show up for a download product but shows for others.
During checkout the payment method for Direct Bank Deposit doesn't show up for a download product but shows for others.
Was the module created from the COD module? If so, you will need to make some changes as COD is never allowed for Downloads.
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
I took a look at includes/modules/payment/dirbank.php and found...
// disable the module if the order only contains virtual products
if ($this->enabled == true) {
if ($order->content_type == 'virtual') {
$this->enabled = false;
I changed this to
// disable the module if the order only contains virtual products
if ($this->enabled == true) {
if ($order->content_type == 'virtual') {
$this->enabled = true;
It now works OK and the Direct Bank Transfer shows up for download products.
Thanks Webgaffer for coming back with this info. I spent a few hours on the same problem because the test product I made happened to be virtual. I'd never have found the solution without you!
oops! Just noticed the readme that comes with the module mentions a "virtual products switch". It stands out more when you know.
Hi just incase anyone reads this
i had this problem with the uk ONLINE BANK module
but i had to edit my php with the below for it to show up slightly different from above:
// disable the module if the order only contains virtual products
if ($this->enabled == false) {
if ($order->content_type == 'virtual') {
$this->enabled = true;
Hope this might help anyone
Just had to update my own site, so if you are wondering about the swtich
The switch is in the file listed above:
includes/modules/payment/dirbank.php look for line 66 or close by and
then change from false to true as outlined above.
Hi, I have the simple bank deposit module and have been struggling for a few weeks trying to get this to work with my downloads. I have tried all of the above, ut I dont seem to have this code
// disable the module if the order only contains virtual products
if ($this->enabled == false) {
if ($order->content_type == 'virtual') {
$this->enabled = true;
...I have looked till my eyes are square....wonder if I just put the code in myself..
thanks
If you have the dirbank module installed then there is a file called includes/modules/payment/dirbank.php if you don't have that file then it might be a different module you have installed. You can also check from your admin panel > Modules > Payment and there you should see: a module called: "Direct Bank Deposit". If that is not the case maybe consider to un-install the one you have a get the dirbank module instead.
Bookmarks