osCommerceCoders.com

Affordable end to end oscommerce solutions with
Search Engine Optimization

Email : osCommerceCoders@gmail.com
Call : +1 818-574-3596 (USA) / +44 (020) 8123-6463 (UK)

Disable Paypal or Payment Module above a order total amount

Posted by admin On January - 18 - 2014

Just replace these lines

$this->enabled = ((MODULE_PAYMENT_PAYPAL_STANDARD_STATUS == ‘True’) ? true : false);

with

if ($order->info[‘total’] < 150)

{

$this->enabled = ((MODULE_PAYMENT_PAYPAL_STANDARD_STATUS == ‘True’) ? true : false);

}

If order is more than 150 then the paypal payment module is disabled and status is false.

 

Sponsors