Richard Lee Posted March 6, 2006 Posted March 6, 2006 (edited) Hi guys, Anyone have any idea why shipping tax is not appearing on the final amount as seen in my payement module ? Order total prints correctly on check_confirmation.php page but when I proceed to payement screen of my payment module the amount shown works out to be total - shipping tax!?? Both refer to $order->info['total'] variable, yet produce different values. If someone could clarify why this is I would greatly appreciate it! Thanks :) Edited March 6, 2006 by Richard Lee Quote
Richard Lee Posted March 7, 2006 Author Posted March 7, 2006 The issue is essentially the order of calculation and this affected by the order of the include files within the checkout_process.php page: Proposed solution***: catalog/checkout_process.php: CHANGE $payment_modules->before_process(); require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; TO // make sure we run total's calculations first $order_totals = $order_total_modules->process(); $payment_modules->before_process(); ***BACKUP before you make any changes!!! I am not an authorised OsCommerce developer. Regards Richard Lee Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.