In the Payment modules, the $this->enabled controls the display of the module, as in showing or not showing ...
Example: in the moneyorder.php payment module you will see:
$this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
If you were to add below that:
if (IS_ADMIN_FLAG == true || $_SESSION['cart']->show_total() >= 20) {
$this->enabled = true;
} else {
$this->enabled = false;
}
and then that will show Checks/Money Orders when the order total is greater than $20.00 and hide it or mask it when the orders total is 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!