annnika I've solved the problem
MAKE SURE you backup your website & database first.
Go to includes/modules/payment/sagepay_form.php and edit that file with a good editor.
findreplace withCode:// 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 );This will change the shipping field thats sent to sagepay so instead of seeing thisCode:// 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 );
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.



Reply With Quote

