A Drupal 7 Webform Component which does the following:
- Creates a commerce line item type: "Webform Commerce"
- Creates a Webform component: "Commerce product"
Creates rules which do the following:
- After submitting the Webform, calculates the total cost
- After checkout is complete:
- Retrieves the Webform submission id (sid) from the submitted webform
- Changes the status of the Webform from "unpaid" to "paid"
##FEATURES
- Simple setup for event registrations
- Ajax price calculation for users creating the form
- http://img.skitch.com/20111209-e8am6gm3rma3rpkwsq9ykxyeqg.png
##SETUP
- Enable the module
- Optional: create a product
- Create a webform (either a "Webform" type or any node enabled for webforms)
- Optionally add a "Select" component to the webform that you want to use as extra fees
- Add a "Commerce product" component to the webform
- Select the main product to be added to the webform
- OR create a new product to be added
- Set the price(s) for optional items
- The product will be added to the cart upon submitting the webform
- IMPORTANT: In order to view the new line items, you need to edit the Commerce Cart views to include "Webform extra fee" line items.
- This is done by editing the "Filter" of each cart view.
##TODO
- Add form handlers to the "remove" button in Commerce cart/review for the extra line items
- Add some kind of handler to "edit" the Webform from the cart
Add product creation to the Webform component itself - eliminating the need to set up the product separately.- Update the Cart views on install