Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enable payment only if over a certain amount?


warrenerjm

Recommended Posts

Hi

 

I have the local delivery contribution installed. It does well by setting a minimum value for this option NOT to show in shipping, BUT it does not have the same effect on the cod.php in payment, so the option linked to the local delivery only is available. How do I make COD NOT avaliable in payment too if below this minimum amount please?

 

The same applies to the moneyorder.php (cheques) which I do not want to show as a payment option unless the minimum order value has been reached?

 

If it helps the minimum in both is the same.

 

I cannot write code, so thanks alot for your help. :thumbsup:

 

Julie

Link to comment
Share on other sites

  • 4 years later...

I am looking for something very similar, could not find any add-ons. I just want minimum order total for the check /money order option to be enabled.

 

i'm not a great coder in php, but trying different stuff, no success yet.

 

if ($this->cart->$value < '100') {
$this->enabled = FALSE;
}

 

I dont know how to define the cart total value properly, please help.

Using 2.31. Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...