Download Product Payment Method - Direct Bank Deposit doesn't show
During checkout the payment method for Direct Bank Deposit doesn't show up for a download product but shows for others.
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
Was the module created from the COD module? If so, you will need to make some changes as COD is never allowed for Downloads.
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
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.
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
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!
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
oops! Just noticed the readme that comes with the module mentions a "virtual products switch". It stands out more when you know.
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
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
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
Quote:
Originally Posted by
zend
oops! Just noticed the readme that comes with the module mentions a "virtual products switch". It stands out more when you know.
Ok where is this "virtual products switch" ?
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
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.
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
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
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
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.