I want to create a checkout system

I want to create a checkout system like this: There is a number, product name, quantity, and price as follows. If there are 4 products, you press the button for product 2 and the button for product 3, so that product number 2 is at the top and product 3 is next. I want to position it as , but what should I do?

Instead of a table of text boxes, consider a cash register tape type display of items already entered, and a small number of text boxes, just enough to edit a single entry in the list.

Sample: