2 replies [Last post]
pshafer's picture
Offline
Joined: 10/25/2008
Juice: 12
Was this information Helpful?

Is there anyway to have Ubercart add First name and last name to fields in user records that were defined by drupals core Profile module when new anonymous users check out? I would like to have a full user profile created after their first purchase. This is the only way new users accounts are created.

I am using the uc_addresses module to store multiple address. If nothing to support this is known to exists, then I would be more than happy to attempt to write this.

Thanks,

Phil

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Ubercart and Profile Module

Hey Phil, the core modules doesn't support this directly, but it is creating and linking a new user account to the order if none was found matching the order e-mail address. The "Customer completes checkout" event is getting fired after this happens, so you could get away w/ a simple Workflow-ng action that copied some data from order fields into the $order->uid user's profile.

aparker's picture
Offline
Joined: 10/31/2008
Juice: 30
Re: Re: Ubercart and Profile Module

While this will work technically, it is not a business solution. Many of our customer have completely different billing addresses from their mail or shipping addresses. The user needs to be able to fill out their profile separately from their billing/shipping address.
Andy