Jump to content



Latest News: (loading..)

- - - - -

Enable payment only if over a certain amount?


  • Please log in to reply
2 replies to this topic

#1   warrenerjm

warrenerjm
  • Members
  • 1,144 posts
  • Real Name:Julie
  • Gender:Female
  • Location:UK

Posted 13 December 2007 - 07:51 PM

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

#2   mcbsolutions

mcbsolutions
  • Members
  • 165 posts
  • Real Name:Steve Walker
  • Gender:Male

Posted 05 July 2012 - 09:48 PM

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 - 09:49 PM.


#3 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,377 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 06 July 2012 - 06:53 AM

View Postmcbsolutions, on 05 July 2012 - 09:48 PM, said:

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

$cart->total