2 replies [Last post]
schaub123's picture
Offline
Bug FinderGetting busy with the Ubercode.PayPal Hero
Joined: 10/08/2007
Juice: 458
Was this information Helpful?

Looking for the best workflow method to add all new customers to a "customers" role. I want it to fire right after the uc checkout code that creates new users. Thanks for any info.

Christopher Schaub

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: best workflow spot to add user to role?

That would be the "Checkout completed" event. Let me know if this page needs to be updated at all:

http://www.ubercart.org/docs/user/1995/ubercart_integration_workflowng

schaub123's picture
Offline
Bug FinderGetting busy with the Ubercode.PayPal Hero
Joined: 10/08/2007
Juice: 458
Re: Re: best workflow spot to add user to role?

I tried this, and it worked fine testing while logged in. But, it causes a state error with workflow-ng for anonymous purchases. The IPN or return from payapl comes in as anonymous which makes it tough to add to a group -- even though an account is created on the backend? Just create the workflow you mentioned and do it as an anonymous user that hasn't already created a drupal account, simulating a new customer making an anon purchase. Thanks for all your help.

Christopher Schaub