Is there presently a system to pass name/address information from the webform to Ubercart? I'm not seeing one, so if not, I'd like to make this a feature request. My clients like to have all the collected information in a single webform report rather than having to pair up webform submissions with Ubercart transactions. This seems like a logical feature for this module.
You can do this using the Ubercart ECO and Webform PHP modules, but Webform PHP puts PHP in the database, which is obviously not recommended. So it would be great to be able to do this in a safer way through this module. If anyone has done this and has a custom module code snippet or a patch for this module, I'd appreciate it.
Comments
Comment #1
brightboldFor what it's worth, here's code that works with ECO and Webform PHP:
where "sponsor" is the name of a webform fieldset and the item after that is the field key.
Comment #2
andyf commentedNo that's not currently possible. I've actually had this functionality working on a site since before the module was stable, but nobody ever requested it, so I never cleaned it up (it doesn't have a UI). I guess what we'd want is a way to map a component name to an address line in the UI. It might be a good idea to put this in a separate module (already uc_event_registration's grown larger than I'd like).
I'm very busy at the mo but should be freer in a month or so. If anyone wants to supply a patch (or make a new module) here's the code I've been using (slightly cleaned up, might need more):
Comment #3
andyf commentedComment #4
brightboldThanks. I don't have the capability to create a UI and patch the module, but I will definitely try out your custom module code on my site — that's incredibly helpful.
Comment #5
andyf commentedGlad it's of use! No worries re UI. Just wanna put the code out there; if someone codes a UI fantastic, if not no great shakes.
If you have any issues using it, do please post back here.
Thanks