First time using Commerce and made pretty good progress, but... I need to collect a few bits of information at the cart stage. The site is selling conference tickets, and I need to know:

  1. if the delegate has any dietary requirements
  2. whether or not they have been asked to speak
  3. and if they have, to provide a short bio

I'm aware of the {{ item.note }} tag, which I'm using for the dietary requirements. But how can I capture the other two fields?

Any help much appreciated!

  • What version of Commerce do you use? I guess you could create Order fields and fill them by posting to update-cart with a field name of fields[your-field-handle]? – Paul Verheul Oct 10 at 12:45
  • Hi Paul. I'm using Commerce 2. Unfamiliar with order fields so I'll have a look at that thanks. – Ian Ebden Oct 10 at 12:53

Paul's suggestion of using order fields worked perfectly.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.