Forums / Built-in Shipping and Payment Modules / possible? don't allow Credit cards below certain order $ value

possible? don't allow Credit cards below certain order $ value

Locked

Views: 705

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 Dec 2010, 2:01 AM
#1
highlander avatar

highlander

Zen Follower

Join Date:
May 2007
Posts:
125
Plugin Contributions:
0

possible? don't allow Credit cards below certain order $ value

Is it possible to prevent the use of credit cards for orders below a certain$ value threshold ? For arguments sake not allowing it as a payment option for a $2.00 purchase.

9 Dec 2010, 2:47 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: possible? don't allow Credit cards below certain order $ value

You can control the $this->enabled and set it to false if the amount in the cart is too low ...

Example: in AuthorizeNet authorizenet.php you will see the line:

    $this->enabled = ((MODULE_PAYMENT_AUTHORIZENET_STATUS == 'True') ? true : false);

Below that add the test you want to use and set:
$this->enabled = false;

if it fails your test ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!