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:
PHP Code:
$this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
If you were to add below that:
PHP Code:
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 ...
Bookmarks