6 replies [Last post]
Nikkol's picture
Offline
Joined: 01/21/2008
Juice: 68
Was this information Helpful?

Looking for an extra brain to help me on this one.

I have certain profile fields that are mandatory upon account creation. I'm assuming that Ubercart account creation will bypass this, so I need a way to prompt the user to fill out those fields. Several ways have occured to me, but I'm not sure what would be the best ... (a php block that queries for no values in those fields that alerts the user to fill in those fields; maybe something a little more involved that would redirect to the edit profile page using actions or something similar ...)

So, all you Drupal gurus, what would you suggest? All ideas welcome!!

[I did a *quick* search for 'profile' here, but didn't see anything quite like to my question.]

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: upon account creation thru Ubercart, require certain profile

Hey Nikkol, a quick response that's not quite what you're looking for... I had tried to implement a patch on this one time but didn't get through it. I may give it a second go today, as it is a fairly important issue to solve. My solution would involve simply adding any profile fields marked as required at registration to the customer checkout pane on the checkout form. Sound kosher to you?

An alternative would be to require registration prior to checkout.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: upon account creation thru Ubercart, require certain pro

You know... at this point, I think I'm going to have to postpone the feature addition unless some glaringly easy solution turns up. I implemented a feature freeze a while back except for items on the beta-do, and I think that having the option to require registration prior to checkout covers this one better than any half-solution I could come up with quickly.

Nikkol's picture
Offline
Joined: 01/21/2008
Juice: 68
Re: Re: Re: upon account creation thru Ubercart, require certain

No problem Ryan. I understand, especially now that drupal6 is out. I'd rather not require registration first before checkout .. I still might, but I can live with those empty fields for the time-being. Receiving payment is more important!!

Sansui's picture
Offline
Joined: 06/05/2008
Juice: 154
Re: Re: Re: Re: upon account creation thru Ubercart, require cer

This looks like it might be similar to something I'm looking into.

I'd like to be able to add some fields to checkout for gender, as well as a hidden field passed by a product, and then when the user is created after anonymous checkout, have the information for the gender field and hidden field added to the profile.

I looked around in the forum threads but maybe I'm not searching for the right strings. Has anyone done something similar in filling in fields in the drupal user profile from ubercart's checkout?

Missy's picture
Offline
Joined: 03/21/2009
Juice: 10
Me, too

I totally need this, too. If a profile field is filed out, it changes the role and based upon the role, the user gets a discount. (Members of a club get a discount and they fill in their membership number on the profile and a hook updates their role to club member)

donquixote's picture
Offline
Joined: 09/09/2009
Juice: 35
updates

Hi!
Any news here?
I found a few related threads, but no ready to use solution for Ubercart 2.x on D6.