Jump to content



Photo
- - - - -

Enable payment only if over a certain amount?


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1   warrenerjm

warrenerjm
  • Members
  • 1,144 posts

Posted 13 December 2007 - 19:51

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.gif' class='bbc_emoticon' alt=':thumbsup:' />

Julie

#2   mcbsolutions

mcbsolutions
  • Members
  • 177 posts

Posted 05 July 2012 - 21:48

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

Edited by mcbsolutions, 05 July 2012 - 21:49.


#3   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,560 posts

Posted 06 July 2012 - 06:53

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


$cart->total