3 replies [Last post]
pyrello's picture
Offline
Joined: 08/26/2008
Juice: 13
Was this information Helpful?

Hello,

After finally convincing my employer to allow me to use Drupal for our latest web project, I have run into some limitations. I am trying to create a system to allow users to sign-up and pay for art classes. Specifically, here is what needs to happen:

  1. The user will go to the class (product) page and hit a register button.
  2. This will take them to a form where they can register one or more people for the class. This form would contain all non-transaction-related information, such as the name of the person being registered and their age. At the bottom would be a link to add another copy of the form, so that several people could be registered for the same class on the same page. Note: After talking with the client, they would also like it to be similar to the built-in address form for ubercart, in that the person can select from a list of previously registered people or enter a new one.
  3. Hitting submit on this page takes the user to the shopping cart and adds as many registrations for that class as were filled out on the previous page to the cart.
  4. From that point on, it is roughly the same as normal.

Also, the information that is collected in the form needs to be associated with the transaction so that reports can be run about the people registered for each class.

So, should I be trying to do this as a product feature, where the form that collects the registration info is the feature?

Or should I be trying to create a custom product type that has the registration form built in?

Or am I making this harder than it is and there is an easier solution that I'm not seeing?

I am a php and drupal development novice, but I learn quickly, so if anyone could provide examples that I could look at, I'm fairly certain I could figure it out.

Thanks in advance for any help you can give!

Sean

lindenlion's picture
Offline
Joined: 11/12/2008
Juice: 39
Still looking for help?

Hi there,

Are you still looking for help?
I'm currently looking to sponsor a module that will allow webform submissions to be added to the cart and be treated as booking. This is similar to what you describe (although it seems you make it more complicated than it could be). Check my spec out to see if you would like to support my approach to bookings and I'll keep you informed about the progress it's making if you like.

Cheers, Michael

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Still looking for help?

I'm not sure what version you're targeting your development for, but I thought I'd point out that someone has already started down this road for the D6 version - http://drupal.org/project/uc_webform_productize

lindenlion's picture
Offline
Joined: 11/12/2008
Juice: 39
Re: Re: Still looking for help?

Unfortunately I'm not daring enough to build a production site in Drupal 6 with half of my modules in development stage. This site needs to be finished by December, so I'll think I'll just scratch together my own code for now, custom coded for my site. Then next year if I was going to do something similar I'll look into what D6 has to offer.
Cheer, Laughing out loud