Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enabling payment method OVER a certain amount


clongato

Recommended Posts

Hi,

 

I searched the foruns, but didn?t find a way to make payment modules available for the client only if the order is over a certain amount.

 

I found the tip to disable a payment module if order is over the amount, and tried first to the exactly the opposite:

 

to disable:

 

if ( ($this->enabled == true) && ($order->info['total'] >= 700) ) {

$this->enabled = false;

}

 

to enable, it shoud be only to change false to true, but when doing this - even tought the payment module is shown as an option - when the client chooses the module he gets an error, telling he didn?t chose a payment method.

 

I can?t figure out why this is happening. Can anyone give me a help?

 

Thank?s for ANY help!

 

Claudio

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...