Forums / Built-in Shipping and Payment Modules / Limit payment type to a customer group (or customer)?

Limit payment type to a customer group (or customer)?

Locked

Views: 2,697

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Jul 2009, 10:24 PM
#1
pharry avatar

pharry

Zen Follower

Join Date:
Jun 2009
Posts:
131
Plugin Contributions:
0

Limit payment type to a customer group (or customer)?

I don't accept checks or money orders in general - I rarely received them. However, I have a group of six folks that do pay later, either with checks, or one CC/PP payment for a group of orders.

Is there any way that I can allow only certain folks to use the "Check/Money Order" option? I'd like to either setup a group for them, and allow that option only for members of that group. Or, setup it up for them individually.

17 Sep 2010, 5:17 PM
#2
sparrish avatar

sparrish

New Zenner

Join Date:
Sep 2005
Posts:
67
Plugin Contributions:
0

Re: Limit payment type to a customer group (or customer)?

I would really like to know this too. Has anyone worked out a solution?

IndieBuzz PR - http://www.indiebuzzpr.com
Parrish Web Design - http://www.parrishwebdesign.com

17 Sep 2010, 5:27 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Limit payment type to a customer group (or customer)?

Write your custom logic for identifying which customers are allowed to use it, and wrap that into your payment module's update_status to set $this->enabled to true or false based on suitability.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Oct 2010, 3:22 PM
#5
yosemirza avatar

yosemirza

New Zenner

Join Date:
Aug 2009
Posts:
25
Plugin Contributions:
0

Re: Limit payment type to a customer group (or customer)?

Hello ...could you give some example code for this. I really need this for COD payment to only apply to certain group (user group). Thank you