I've not tested this, because I no longer have a 1.3.9 test site handy. (Shameless plug encouraging you to upgrade to a current version ;) )
paypaldp.php file (payments pro)
Code:
if ($order_amount > 10000) $this->enabled = false;
}
// disable for invoice-only customers
$group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
if ($this->enabled == true) {
$check_flag_group = false;
$check = $db->Execute("select group_name from " . TABLE_GROUP_PRICING . " where group_id = '" . $group_query->fields['customers_group_pricing'] . "'");
if ($check->RecordCount() == 1) {
$invoice_prefix = "invoice";
$check_prefix = substr($check->fields['group_name'], 0, strlen($invoice_prefix));
if (strcasecmp($check_prefix, $invoice_prefix) == 0) {
$check_flag_group = true;
}
}
if ($check_flag_group == true) {
$this->enabled = false;
}
}
}
Bookmarks