Closed (fixed)
Project:
Ubercart Webform Integration
Version:
6.x-1.0-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 May 2011 at 10:26 UTC
Updated:
24 Jun 2011 at 08:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
fuerst commentedBy answering my own question: Got it working by creating a custom module:
hook_form_alter()to embed a webform to the Add to Cart form of a Ubercart product node.hook_nodeapi()the webform components are removed when viewing the node. That way the webform will not be rendered again by its usual way.hook_add_to_cart_data()to append the submitted webform data to the cart item.hook_order()to show the webform data in the order (email, order admin page)There is no Webform submission generated because I do not want redundant data. Webform module is therefor reduced to something like a form builder. May be the Form Builder module is a better way than using Webform for this purpose.
Comment #2
aminalid commentedHi fuerst...
I am trying to load a webform into a drupal form and submit both in one action, the idea is to have the webform embedded as a feedback form into another modules action form.
Is there a chance that you can share the module or provide some code snippets for the form_alter and nodeapi hooks.
Thanks.
Comment #3
fuerst commentedSure, the attached module should get you started. It is somewhat tied to the Ubercart module.