Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Netbilling gateway and discount modules


Ben80

Recommended Posts

When using Netbilling's latest payment module in combination with various discount modules (discount_quant_v1, qty_discount_v1.41, etc), the discounted price is not sent to the gateway.

 

This can be fixed by simply replacing the following lines in checkout_process.php:

 

 
// load the before_process function from the payment modules
 $payment_modules->before_process();

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

 $order_totals = $order_total_modules->process();

 

With following:

 

 
// load the before_process function from the payment modules
// $payment_modules->before_process();

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

 $order_totals = $order_total_modules->process();

// load the before_process function from the payment modules
 $payment_modules->before_process();

 

I hope this helps anybody else that runs across this issue.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...