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.
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
Quote:
Originally Posted by
steveuk
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
I have downloaded and installed another DD bank module with above code.
Have changed my code to ....
disable the module if the order only contains virtual products
if ($this->enabled == true) {
if ($order->content_type == 'virtual') {
$this->enabled = true;
But still not working with downloads. If I change it to the code that steveuk suggests, then it ignores my zones to only have DD for australia and enables the DD for US as well...??? so not sure on what to do now.
Re: Download Product Payment Method - Direct Bank Deposit doesn't show
Just an update on this module. I had an digital order this morning, but for some reason, the order goes to paypal, but the transactiond doesnt go thru. I notice that on the invoice, it shows payment type as direct debit and gives my banking information. Trouble is.... I have only enabled this to work with Australia. I have had to delete the module completely so as my customers from the US and UK can to their purchase thru paypal. Not sure what is happening, but just not working on my site. Sales go thru fine when this module is not there.
Think I will just stick with Paypal. and not give any options.