Forums / Addon Payment Modules / Payment mode specifiend by Discount group needed

Payment mode specifiend by Discount group needed

Views: 1,016

Results 1 to 4 of 4
27 Dec 2011, 2:42 PM
#1
maxus avatar

maxus

Zen Follower

Join Date:
Feb 2005
Location:
Prague
Posts:
130
Plugin Contributions:
0

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

27 Dec 2011, 2:51 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Payment mode specifiend by Discount group needed

You can customize the file:
/includes/modules/payments/cod.php

with the code in RED:

      $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 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Dec 2011, 3:16 PM
#3
maxus avatar

maxus

Zen Follower

Join Date:
Feb 2005
Location:
Prague
Posts:
130
Plugin Contributions:
0

Re: Payment mode specifiend by Discount group needed

Thank you!

27 Dec 2011, 3:32 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Payment mode specifiend by Discount group needed

You are most welcome ... glad this worked for you ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!