Edit the file:
/includes/classes/order_total.php
and add the code in RED:
Code:
$calculatedOrderTotal = $order->info['total'];
// bof: get total for payment modules
$_SESSION['my_total'] = $order->info['total'];
// eof: get total for payment modules
$order->info = $orderInfoSaved;
Edit the file:
/includes/modules/payment/moneyorder.php
and add the code in RED:
Code:
$this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
// bof: disable on orders less than 100
if ($_SESSION['my_total'] < 100.00) {
$this->enabled = false;
}
// eof: disable on orders less than 100
if ((int)MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID > 0) {
Does this work the way you need it?
Bookmarks