Thanks so much for your help. I uninstalled the module, and then re-installed it, and it seems to work fine now.
Thanks so much for your help. I uninstalled the module, and then re-installed it, and it seems to work fine now.
Hi,
I've had the same problem as above and I've added a couple of lines that basically check to see if the Delivery information is missing ( to be specific I check the street address and country ) and if it is I copy the billing details into the delivery details array.
I've tested it and it works fine for me.
See modified file attached with the updated code commented.
I hope someone else will find it usefull
Regards,
Mark
www.avova.ie
Oh and I forgot to thank you Nixak for the great module.
If you need any help with testing/developing it further please just let me know.
Regards,
Mark
www.avova.ie
Hi avova, I just wanted to ask you about that delivery address problem as I don't sell virtual products so it's a little difficult for me lol.
As I understand it from my store when the customer registers to the store they enter the main address ie the billing address and then when they order they can either have the goods sent to that address or enter a new address. If they do not enter a new delivery address then zen-cart automaticly sends the billing address as the delivery address, so you should not have a problem unless you are using a mod that allows your customers to order without registering to your site.
Is there something different with virtual products? which causes the problem listed above and if so could you give me as much detail as possable so as I can re-code the module to help you all.
Regards
Nixak
Yeah no problem.
Basically what happens is with a download/virtual product the entire shipping process is bypassed and $order->delivery[] is left with blank fields.
The code I used to fix the issue is highlighted by code comments in the file I attached in my previous post. (It's at the top of the process_button() function )
All I'm doing here is checking to see if the $order->delivery array is empty and if it is I copy the details from the $order->billing array to it and that keeps SagePay happy.
I hope that clears things up for you.
Regards,
Mark
www.avova.ie
Cheers Avova I will update the module with those changes as soon as I can .... the wife has me updating her website at the moment![]()
No problem at all.
And like I said if you need any help with development/testing just let me know.
Regards,
Mark
www.avova.ie
Hi Nixaks!
Thanks for this mod...it installed and worked 1st time!
Just a couple of quick question....is there anywhere that tells me in admin that a payment was authorised or is the only confirmation the email sent from sagepay?
If it's just the email, is there any way of tying the order ID within zen cart to the transaction ID from sagepay? Does the transaction ID get written to the database anywhere?
Also, when a payment is refused the user is returned to the payment screen in Zen Cart. Is there any way to display a message to say the payment was refused?
I am using Zen Cart version 1.3.8a and am still using sagepay in test mode.
Thanks again for the mod...it's really good!!![]()
Bookmarks