Zen Cart Logo
Forums / General Questions / Hide COD payment method from certain customers?

Hide COD payment method from certain customers?

Views: 763

Results 1 to 4 of 4
1 Apr 2013, 5:15 PM
#1
troyc avatar

troyc

New Zenner

Join Date:
Apr 2013
Posts:
5
Plugin Contributions:
0

Hide COD payment method from certain customers?

Hi

I would like to be able to hide certain payment methods from certain customers. Specifically I'd like to hide the COD module from people who didn't go and collect their order in the past.

I have already modified the module so it will be hidden for specific products and also under/over a certain total amount, but I can't seem to figure out how to do a check against customers ID.

Could any one give me a hint (or better yet, a solution!)

5 Apr 2013, 1:20 PM
#2
troyc avatar

troyc

New Zenner

Join Date:
Apr 2013
Posts:
5
Plugin Contributions:
0

Re: Hide COD payment method from certain customers?

Nobody even have a a suggestion or a idea?

5 Apr 2013, 1:27 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,089
Plugin Contributions:
56

Re: Hide COD payment method from certain customers?

The signed-in customer can be identified by examining the value in $_SESSION['customer_id'].

5 Apr 2013, 3:19 PM
#4
troyc avatar

troyc

New Zenner

Join Date:
Apr 2013
Posts:
5
Plugin Contributions:
0

Re: Hide COD payment method from certain customers?

Of course, why did not I think of that... Thanks a bundle, it worked like a charm!

A plugin/feature like this is something that is way over my head programming-wise, but a feature I would have liked to see, is the possibility to choose allowed shipping/payment methods on product level, and also for the same reasons stated above, by customer.