PDA

View Full Version : Set limit to order value for payment Modules (NOCHEX)



michael_s
05-26-2008, 02:04 PM
Only One syntax removed as I was getting one error, ALL OK now.

Find this in ../includes/modules/payment/[paymentmodulename].php

// class methods
function update_status() {
global $order;

Add Below...

if ($order->info['total'] > '100')
$this->enabled = false;

Where '100' change to what ever value you want but for Nochex leave as 100 that way a cart with more than £100 of items Nochex will be disabled as a payment option.

Change > to < if you want the module only to be active if the cart is more than 100

More... (http://addons.oscommerce.com/info/5808)