Latest News: (loading..)

Archived

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

warrenerjm

Enable payment only if over a certain amount?

3 posts in this topic

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

 

$cart->total

Share this post


Link to post
Share on other sites