Re: Nixaks Sagepay Form Module
annnika I've solved the problem :clap:
MAKE SURE you backup your website & database first.
Go to includes/modules/payment/sagepay_form.php and edit that file with a good editor.
find
Code:
// Basket detail code
if (MODULE_PAYMENT_SAGEPAY_FORM_SHOPCART == 'true') {
$shipping = $order->info['shipping_cost'];
$shipping = number_format($shipping, 2, '.', '');
$products = $_SESSION['cart']->get_products();
$no_lines = sizeof($products) + 1;
$shippingStr .= ":Shipping:---:---:---:---:".$shipping;
$basketStr = "Basket=".$no_lines;
$moreStr .= ":More products...See Order.:---:---:---:---:---";
$moreLen = strlen( $moreStr );
replace with
Code:
// Basket detail code
if (MODULE_PAYMENT_SAGEPAY_FORM_SHOPCART == 'true') {
$shipping = $order->info['shipping_cost'];
$shipping = number_format($shipping, 2, '.', '');
$shippingtax = $order->info['shipping_tax'];
$shippingtax = number_format($shippingtax, 2, '.', '');
$totalshipping = $shipping + $shippingtax;
$totalshipping = number_format($totalshipping, 2, '.', '');
$products = $_SESSION['cart']->get_products();
$no_lines = sizeof($products) + 1;
$shippingStr .= ":Shipping:---:".$shipping.":".$shippingtax.":".$totalshipping.":".$totalshipping;
$basketStr = "Basket=".$no_lines;
$moreStr .= ":More products...See Order.:---:---:---:---:---";
$moreLen = strlen( $moreStr );
This will change the shipping field thats sent to sagepay so instead of seeing this
Shipping --- --- --- --- 15.19
you should get this
Shipping --- 15.19 3.04 18.23 18.23
Just in case your not sure what you see is:
15.19 = shipping cost
3.04 = shipping tax
18.23 = total shipping
18.23 = line total (I've left this in as it looks better)
Hope this helps
Nixak
p.s. this will be included in the next update.
Re: Nixaks Sagepay Form Module
you are a star!! :clap: :clap: :clap:
Re: Nixaks Sagepay Form Module
Nixak, I've uploaded those two PHP files to the relevant folders on my Zen Cart and nothing has changed in the payment section of my admin. Any ideas?
Re: Nixaks Sagepay Form Module
Quote:
Originally Posted by
mrkay
Nixak, I've uploaded those two PHP files to the relevant folders on my Zen Cart and nothing has changed in the payment section of my admin. Any ideas?
I'm not sure what to say .....
Once the files are uploaded got to admin/modules/payment and it should be there in the list as Debit/Credit Card - Sagepay Form.
Only thing I can think of is I know that firefox can be a sh*t at times and I have to clean out my cache to see any changes.
Re: Nixaks Sagepay Form Module
Nixaks,
I have to thank you so much for this. I had no idea how to do this and I followed your instructions and it seems to work perfectly.
Thank you so so much :hug: :clap::bigups:
Re: Nixaks Sagepay Form Module
Quote:
Originally Posted by
Nixak
I'm not sure what to say .....
Once the files are uploaded got to admin/modules/payment and it should be there in the list as Debit/Credit Card - Sagepay Form.
Only thing I can think of is I know that firefox can be a sh*t at times and I have to clean out my cache to see any changes.
Hi Nixak, I tried that unfortunately to no avail. I've still got the old Protx module installed - could that make a difference?
Re: Nixaks Sagepay Form Module
Sorted the problem out Nixak. Although the files were showing on the web server I noticed their size was 0kb. The problem was I'd reached my disc quota on the server.
Re: Nixaks Sagepay Form Module
***EXCITING NEWS***
Version 2.0 is almost finished & should be with you all shortly.
The changes are way too long to list but I think that all of your previous requests have been included :D
Re: Nixaks Sagepay Form Module
Ok people I've uploaded version 2.0 to Zen Cart -- PLEASE update your websites asap.
These are some but not all of whats changed:
AES encoding added - alot stronger and harder to crack.
Error messages now display to the customer when they are returned to your website from SagePay.
Transaction details from SagePay are now recorded in the orders
Enjoy & a massive thank you to all of you who've helped & made suggestions to improve the module.
Re: Nixaks Sagepay Form Module
Hi all,
The updated version 2.0 is now available for download :D
I hope hope you all enjoy the hard work I've put in lol ..... PLEASE read the readme & changlog files first, they are in the docs folder. Also please update your module asap as there have been some important security changes.
Regards
Nixak