Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (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 by Richard Lee
Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...