Good Morning - well, here at least...
Many thanks for this, I have no problem editing the files once I know what I am doing.
Thanks again for your help ... Michael
Good Morning - well, here at least...
Many thanks for this, I have no problem editing the files once I know what I am doing.
Thanks again for your help ... Michael
Just popped back to say all now working as it should. Thanks again for your help ... Michael
Hi,
I have installed this app, and even though everything seems to be working, there is one issue I can't seem to figure out.
I am using the UK version for my Webshop based in switzerland. ZC Version 2.1.0 Checkout OPC I also use Stripe. I sell downloads as well as physical products.
So my problem. If I add only downloads to the cart, the direct payment doesn't shows up in the payment method, but if I add a physical product it shows up. The *Set Order Status* is on Pending so that customers can't download the product until I have recieved the payment.
I tested this by install the check/money method and this works for digital only products. It shows up on the payment method and the downloads are only possible after payment is received, so why is it not working for the Direct Bank Deposit in the same way?
Thanks for your help.
in the UK version, look at around line 91 for this section of code:
change the one line to:PHP Code:// disable the module if the order only contains virtual products
if ($this->enabled == true) {
if ($order->content_type == 'virtual') {
$this->enabled = false;
}
}
}
and you should be good to go.PHP Code:// $this->enabled = false;
best.
HI thank you so much. Unfortunately, I am not really understanding what I have to change. I changed the line that has true into false, cause it's the only one that made sense. It shows up now if I only have a digital product in the cart, but when I check out it gives me an error at checkout. (HTTP ERROR 500)
Help please.
What part of this text do I have to change?
// disable the module if the order only contains virtual products
if ($this->enabled == true) {
if ($order->content_type == 'virtual') {
$this->enabled = false;
}
}
}
Thank you
i will try again.
all you are doing is adding 2 forward slashes (//) to line 94 of:
includes/modules/payment/dirbankuk.php
look at around line 91 for this section of code:
change the one line as i previously indicated so that same section now looks like:PHP Code:// disable the module if the order only contains virtual products
if ($this->enabled == true) {
if ($order->content_type == 'virtual') {
$this->enabled = false;
}
}
}
if i am somehow unclear as to what i am suggesting to do, i would recommend someone else trying to explain it to you; or perhaps hiring someone to make the change.PHP Code:// disable the module if the order only contains virtual products
if ($this->enabled == true) {
if ($order->content_type == 'virtual') {
// $this->enabled = false;
}
}
}
if before you could checkout fine, and now you are getting a 500 error, that would suggest to me you have not correctly made the modification that i am recommending.
best.
Hi, Thanks for your reply.
I have made the changes as per your recommendation, but it seems the error must be coming from something else. I uninstalled the whole app and reinstalled it, without making any changes, I tested it and it gives an error regardless of what I order, physical or digital products. Strange is that it shows the order in Admin, but no confirmation email, nor are downloads showing on the invoice.
I will get someone to look at it...
Thank you
Thanks carlwhat. I've been offline and just catching up now.
I'll update the documentation to explain the change.
OldNGrey
ZC158a PHP 8.2.15
MySQL 10.6.16-MariaDB