has anybody here done a membership site, i have questions about the workflow

Posts: 4
Joined: 12/11/2007

Hi there -

It's my first time using ubercart, and i plan on using it to sell membership on a site i'm building, i've been scratching my head as to how to integrate that into the drupal registration workflow, without having to do any major hacking.

Basically the workflow would be:

1) register
2) receive email and validate email
3) view profile, enter new password
4) goto a checkout page for the subscription

I'm not quite sure what most sites do when they sell membership, do you register, and *then* buy a membership, or is it rolled into the registration process somehow?

Any tips would be appreciated! Thanks

Posts: 50
Joined: 08/17/2007
Getting busy with the Ubercode.Spreading the word - Ubercart for president.

you should look at this ubercart module:

http://www.ubercart.org/contrib/79

Posts: 4
Joined: 12/11/2007

Thanks for the reply!

I noticed the functionality covered by that module is already in the latest ubercart release, which allows the user role to change after the purchase of a product (or membership), but doesn't really address the workflow issue of having to do two separate steps 1) registering 2) buying a membership

Maybe there's no way around that, i'm curious what others have done! But certainly just keeping the continuity in someway, even if it's just a UI addition...

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Well, two possibilities here... One would be to just turn off normal registration at your site and instead use the new user account creation options at checkout. Users can specify/confirm their e-mail address and a username/password when they checkout. You can just let them know this will be their login.

The other possibility would be to use a module like LoginToboggan to redirect the user when they first login. If you want them to reset their password first, that's tricky. If you just want to send them straight to checkout, you can use the Cart Links API to create a link that will add the membership product to their cart and send them straight to checkout when they first login. Put instructions for changing their password in the checkout completion pages or something.

Posts: 4
Joined: 12/11/2007

Hi Ryan, thanks that's very helpful - !
Thanks!

Posts: 8
Joined: 12/17/2007

Not sure I get this.

I'd have thought membership sales would be a reasonably commonplace request following this :

- Anonymous user adds the membership product to cart
- Checkouts out and pays for items
- Goes into registration process
- Membership role level applied

You need to make allowance for registered users without higher roles for those of paying members.

So are you saying Ubercart can't do this?

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Sadly, Ubercart can't do everything any imaginable way, but what you've specified it can fairly well take care of. It just bypasses your step 3, since it's unnecessary if the new user account is created at checkout. That would be the first option I mentioned above - letting users specify a username and password in checkout is possible in core, and I don't think you have to worry about account validation (to protect against spammers) if they're getting charged to register.