Posted by bkudria on August 14, 2007 at 7:54pm
I'm trying to write a module for ecommerce which adds a step to the ordering process where a user can add special instructions. I've got that bit working, but I can't figure out how to save the data entered with the order, and present it later on. Can I tack it on the transaction ($txn) and expect it to be saved in the DB?
What would be the best way to do this?
Thanks for the help!

Comments
http://ecommerce.heydon.com.a
http://ecommerce.heydon.com.au/api/function/hook_checkoutapi/5_3
This will probably do the trick for you.
Thanks, Alan, that bit
Thanks, Alan, that bit indeed helped - but I'm already past that stage. I've got the extra screen appearing in the checkout process, I just need to save the data. The docs say, for this step:
"save": The injected form page has been submitted. Save your data in this hook. IMPORTANT: $txn->screen must be incremented...
How do I do that bit, save the data? Excuse me if this question is elementary, this is actually my first module for Drupal. The data is a only a text area, there isn't anything complex that needs to happen.
Thanks!
Hi You have to save it in
Hi
You have to save it in your database. If you don't know how to do that make yourself familiar with SQL and the Drupal database layer.
If you want to this bit done by someone else, free to contact me.
Best Regards
Ernst
Plüss Production
Schmittli
4919 Reisiswil
Switzerland
T:+41 62 927 63 00
M:+41 78 623 86 63
ernst@pluess-production.ch
www.pluess-production.ch
skype: ernst_pluess