LEt's say you want to disable PayPal express when the customer belongs to customer group 2 ...
Edit the file:
/includes/modules/payment/paypalwpp.php
And add the code in RED:
Code:
$this->enabled = (MODULE_PAYMENT_PAYPALWPP_STATUS == 'True');
// bof: disable when when customer group is 2
if (!IS_ADMIN_FLAG) {
global $db;
$group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
if ($group_query->fields['customers_group_pricing'] == 2) {
$this->enable = false;
}
}
// eof: disable when when customer group is 2