8 replies [Last post]
shifthappens's picture
Offline
Joined: 01/27/2009
Juice: 13
Was this information Helpful?

My client typically wants people to pay for products via credit card, so that is the only option that they want customers to see.

However, if a customer insists to pay via other means and comes to the client's office, they will accept payment by check or cash. The client wants to process these check/cash orders via the website as well -- so they want to allow internal employees with the ubercart_admin role the ability to process check and cash orders via the website on behalf of the customer.

So, that's what I need - restrict check/cash payments to only specific roles. I would normally do this myself, but I am swamped with work, am not familiar with the UberCart code, and don't have time to learn it right now.

I am hoping this could be done fairly easily by someone who works with UberCart more than me.

Feel free to contact me with a quote...

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Restrict available payment methods based on role

So, if you enable those payment method modules but don't check their "Enabled" boxes on the payment methods settings form, then they won't be shown on the checkout form but will be shown on the admin order create form. Will that work sufficiently? If not, a module could be written that works through hook_form_alter() to do what you want, and I'd be willing to put that together.

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: Re: Restrict available payment methods based on role

Possible to make displaying payment options an action through CA? It would work just like shipping quotes, this paymentoptions based on order total, country, role this would be nothing short of amazing.

shifthappens's picture
Offline
Joined: 01/27/2009
Juice: 13
That's it!

Ryan,

Thanks for pointing out the administrative "Create Order" functionality. That actually satisfies my client's primary use case.

By the way -- Great job on getting UberCart launched. I started following your project's evolution in March 2007 and am truly impressed at the incredible traction UberCart has made. Way back then, I recall having to use the old ecommerce modules for a small project, because you had not yet configured the PayPal Gateways --- WOW how you and the entire community have made such great progress since then. Bravo, and keep it going!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: That's it!

Thanks for the kind words. Smiling

ntshclr's picture
Offline
Joined: 04/19/2009
Juice: 14
Ryan wrote: If not, a
Ryan wrote:

If not, a module could be written that works through hook_form_alter() to do what you want, and I'd be willing to put that together.

Please, please, please, this would be awesome. I only want to offer credit card and paypal on my website, but for some people I know locally I want them to have a COD payment option so they can put the order in through the site and then I can bring the product to them when I see them and get cash.

gooddesignusa's picture
Offline
Joined: 04/13/2009
Juice: 41
Also intrested

I would love to look at the code Ryan throws together for you. Have a similar situation. Thanks

valeria78's picture
Offline
Joined: 03/24/2009
Juice: 13
Is it going on?

Hi all.
I'd like to know whether anybody is putting this functionality together and if so, when do you think you're going to make it available to the community?
Thanks!

mtraherne's picture
Offline
Joined: 03/31/2009
Juice: 10
Re: Is it going on?

I found this module that looks promising.

http://drupal.org/project/uc_conditional_payment