Or, use the built-in attribute architecture to collect that information up-front as part of their shopping cart contents, instead of waiting until afterwards to figure out how to collect it and store it and re-associate it with the order.