Do you know how to make a cart in GUI for POS

Hello, Everyone I want to ask if anyone here know how can I make a cart that can display my products in it. The problem is that my products is in a button format not in an array or a string