add columns to the eCart object to hold this information.
In the add to cart button behavior, set those new columns to be updatable from a text box.
to store the information in the order details table, you will need to add the columns to the table as well, then edit the eCart Store Order Details behavior that is applied to the confirm page, and bind the new columns in the order details table to the new columns you added to the eCart object.