Forums / Built-in Shipping and Payment Modules / moneyorder OK on orders more than

moneyorder OK on orders more than

Locked

Started by broeder on 1 Sep 2009, 5:43 PM · Views: 953

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
1 Sep 2009, 5:43 PM
#1
broeder avatar

broeder

New Zenner

Join Date:
Dec 2008
Posts:
49
Plugin Contributions:
0

moneyorder OK on orders more than

Hi,

I would like to make moneyorders available only on orders more than a certain amount.

Is there a way to configure this ?

Thanks..

4 Sep 2009, 6:29 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: moneyorder OK on orders more than

The modules are controlled by the $this->enabled

Customize it so that when the order total is >= $XXX it is true and false if less ...

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!

6 Oct 2009, 3:29 PM
#3
broeder avatar

broeder

New Zenner

Join Date:
Dec 2008
Posts:
49
Plugin Contributions:
0

Re: moneyorder OK on orders more than

Hi,

Just to make sure..That's in file:

/public_html/includes/modules/payment/moneyorder.php

Then I should ad:

$this->enabled = (MODULE_PAYMENT_MONEYORDER_TOTAL>=XXX);

Is that right ?

Thanks

7 Oct 2009, 3:43 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: moneyorder OK on orders more than

To know the total of what is in the shopping cart, use:
$_SESSION['cart']->show_total()

Also, doing the test in the:
function update_status() {

before or after the zone test would be better ...

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!