Webform supports embedding hidden fields within a form that get submitted whenever the webform is submitted. My idea is to add the ability to include a product like this as well: the user never has to select the product itself, but instead is directed to the checkout when the form is submitted anyway.
Comments
Comment #1
karingHi - You can do this with some very simple jQuery. I use it to on e.g. ticket orders for school musical - the 'would you like to make it a dinner theater? Is a very simple yes/no radio button -> if 'yes' -> I add x number of dinner tickets with jQuery (where x is what they had already selected for show tickets). To do this you make the commerce fields in webform -> then in jQuery: hide these fields -> then populate their value with x.
Comment #2
karingHere's a code snippet:
Comment #3
Marelmel commentedThank you for your attention.
I am going to try it.
Best.
Comment #4
johnennew commentedGoing to close this ticket.
Comment #5
johnennew commented