PDA

View Full Version : [Bug Fix] Low order Fee not Working with AuthorizeNet



michael_s
09-30-2003, 02:25 PM
Bug Description

The Order Total module low order fee is not working with Authorize Net. The low order fee will display properly during checkout, but it is not sent to Authorizenet.


Bug Fix

To fix this, either download the attached zip file and replace checkout_process.php with the file included in the zip, or manually edit the code making the following change:

Find this code:


require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;

$order_totals = $order_total_modules->process();

And move it from below the Authorizenet mod code block, to just above it like this:


require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;

$order_totals = $order_total_modules->process();

//************************************************** **********
// Authorizenet ADC Direct Connection
// Make sure the /catalog/includes/class/order.php is included
// and $order object is created before this!!!
if(MODULE_PAYMENT_AUTHORIZENET_STATUS) {
include(DIR_WS_MODULES . 'authorizenet_direct.php');
}
//************************************************** **********

That will fix it.

Anonymous
07-30-2004, 05:03 PM
thank you for posting this fix. I just started using the low order fee and could not figure out why it would not show up on the credit card.