Payment mode specifiend by Discount group needed
Hi all.
I have customers who order but not pay (COD) and Im put they do discount group (damn. I dont have any mods for bad customers but need to know who is problematic)
Can I limit payment methods offer for customers from specific Discount gorup??
Example:
For customers from discoutn group 1 show only specified apyment methods? (bank transfer of CC or Paypal)
Or For customers from discoutn group 1 dont offer COD mode
I hate bad customers, but in my country COD is very popular method and I need todo soemthing with customers who order but dont accept ordered goods. I pay delivery fees.
please advice
maxus
Re: Payment mode specifiend by Discount group needed
You can customize the file:
/includes/modules/payments/cod.php
with the code in RED:
Code:
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
// bof: do not use for Discount Group 1
if (!IS_ADMIN_FLAG) {
global $db;
$chk_discount_group_sql = "SELECT customers_group_pricing FROM " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "'";
$chk_discount_group = $db->Execute($chk_discount_group_sql);
if ($chk_discount_group->fields['customers_group_pricing'] == 1) {
$this->enabled = false;
}
}
// eof: do not use for Discount Group 1
and now it will not show for Discount Group 1 ...
Re: Payment mode specifiend by Discount group needed
Re: Payment mode specifiend by Discount group needed
You are most welcome ... glad this worked for you ... :smile: