Ubercart Profile (uc_profile) module extended
Extensions to the ubercart profile module which allow you to add drupal profile fields on checkout
I was approached by a client to extend certain functionality in the uc_profile module.
The Clients
SuitsAndThais.com sells custom made tailored suits. They require their readers to be able to input their measurements along with their order. They were using Drupal Profile module to allow for this information to be inputted upon registration and UC Profile module to inject this information into the Ubercart Checkout.
The Workflow
- User browses the site and finds a suit they want.
- They add this item to their cart and checkout.
- A user must be registered to checkout, they are requested to create an account.
- The "profile" module injects fields into this users registration process (General Measurements, Lower Body Measurements, Upper Body Measurements).
- Upon registration, the customer is redirected back to checkout.
- The uc_profile module, injects the additional profile categories input fields into the checkout process to be edited by user if required.
- Upon successful order, these profile fields are now associated with the order and sent out on the customers invoice and displayed with the order.
The problem
Previously uc_profile only worked with a single profile category named "Ubercart". Also none of the additional checkout information was made available to the orders invoice or admin interface.
Solution
I extended the module to take any arbitrary profile category and inject it into the checkout process.
Minor additions to the administration interface to allow for the configuration of profile categories to be added into the checkout process. The administrator can also choose if they would like these expanded or collapsed by default.
The details of these additional checkout fields are made available into the invoice and order areas for quick reference with the sale.
Download
You can download my UC Profile extension here:
http://digibits.org/sites/default/files/files/uc_profile-20100712.tgz
Comments
Incompatible with add-on modules
Support for other profile modules
I would assume that it didn't
It sounds like you're on the right track
Data flow
Yes.
Data Flow (con't)
I mean once the sale goes