Forums / All Other Contributions/Addons / Limiting a payment method to a customer group?

Limiting a payment method to a customer group?

Started by retched on 31 Jul 2014, 3:13 PM · Views: 633

Results 1 to 2 of 2
31 Jul 2014, 3:13 PM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Limiting a payment method to a customer group?

I think I have an answer to this but I wanted to know of another way.

Let's say that I have a module like Admin Master Password or if I have a group of customers that I want to allow to have an option to pay via a specific method. Is there anyway in ZenCart's engine that I can possibly hide other payment modules during the checkout process?

I'm thinking something like setting the $this->enabled flag to false unless a certain condition is met in update_status class method of the module?

31 Jul 2014, 3:30 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Limiting a payment method to a customer group?

That should work ... test it out to be sure ...

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!