How can I add a checkout button to collect more customer information?

Hi!

I am trying to add a button(s) to gather more information as a customer is checking out. We would like to gather information such as name, age, size, etc. I figured out how to change the code to add a box, but I need it to capture the information at checkout. I hope I am explaining right what I am trying to do. Thanks!