1
Answers
Vote up!
0
Vote down!

Adding extra input fields to Checkout page based on product Quantity

Hi All,

I'm using Drupal Commerce to 'sell' places on workshops. Everything works well except I need to gather a little information about everyone booked on the workshop.

For instance, if one person books four places on a course, I need to get their contact details plus the details of the other three attendees.

I can manually assign a set of fields for the Main Contact using a fieldgroup but is there a way to dynamically create an input field for the name and number of the other people attending (based on the quantity purchased)?

Has anyone seen or tried anything like this before?

Any help or suggestions would be greatly appreciated.

Many Thanks.

Asked by: barbararyanmedia
on September 24, 2012

1 Answer

Vote up!
1
Vote down!

Interesting use case.

There is nothing that would make this work. In fact, the best you could probably do is to create a custom line item with multiple fields for additional contact information and display a few at a time. This would be limited and definitely not the best recommended way of doing it.

Take a look at the registration module, it might be of help:

http://drupal.org/project/commerce_registration

Josh

Josh Miller
Answer by: Josh Miller
Posted: Nov 16, 2012