Attach Custom Information to Commerce Order Model I have shipping methods that will require additional information from the user. For example, a local delivery shipping method which requires the user to include a timeframe for delivery (say, Thursday @ 3pm.)
I thought I'd go about it doing something like this:


On select shipping page during checkout, user selects the delivery date/time (based on what is available.)
User selects date, then submits form.
That date is attached somewhere to the order model.
The shipping method rules will validate the chosen date.
Include this additional information (selected delivery date) in saved order on checkout completion.


Is there a way to do this? Basically, I need to attach additional information for this shipping method (and another similar one.) I've looked through the order model docs but can't find a field I could add custom data to.
Add a custom plain text field to your orders, say test.

Then, when calling updateCart, you can add data in to this custom field using a form with an input named like this:

  &lt;input name="fields[test]" type="text"&gt; etc...


This data will then get saved with the order.  This same approach can basically be applied to any field/type.

To actually validate the data, you'll need to look to making a plugin, most likely listening to onBeforeSaveOrder to check the vailidity of the data.  If valid, great, if not, set perfomAction to false and return an error on the Order model.  

See https://craftcommerce.com/docs/events-reference#commerce_orders.onbeforesaveorder