Page 1 of 1

Payment method: P.O. ONLY if a wholesale user? Possible?

Posted: Thu Jun 11, 2009 6:52 am
by William M
Is it possible to show the PO method only if a shopper has been set up as a wholesale client, and has signed in?

Re: Payment method: P.O. ONLY if a wholesale user? Possible?

Posted: Thu Jun 11, 2009 7:12 am
by mazhar
Edit your Checkout/PaymentForms/PurchaseOrder.ascx file and put following line of code in very start of Page_Load method

Code: Select all

this.Visible = (!Token.Instance.User.IsAnonymous && Token.Instance.User.IsInGroup(wholesaleGroupId));

Re: Payment method: P.O. ONLY if a wholesale user? Possible?

Posted: Thu Jun 11, 2009 8:26 am
by kastnerd
Cant you do this from the admin? Click on payment method, click selected groups and click the group you want?

Re: Payment method: P.O. ONLY if a wholesale user? Possible?

Posted: Thu Jun 11, 2009 8:47 am
by mazhar
:oops: I haven't event think about that. Thanks kastnerd definitely if some one have created group for wholesale he should control it via making PO available only for specific wholesale group.

Re: Payment method: P.O. ONLY if a wholesale user? Possible?

Posted: Thu Jun 11, 2009 10:28 am
by William M
Thanks Mazhar for the fast response and fix, I'll save that if needed.

kastnerd, looks like that did it... the simple way.