I'll explain better my request.
If a user buy something on the site, is there a way to check what he bought and define an input related to that? Example :
User buys 2 tickets of a concert, than on a page we ask to the user how many tickets he want to use for that event. Is there a way to check how many tickets he bought so to limit his input in relation to that (if he bought 2 tickets he can put in the form input 1 or 2) and then eliminate the number of tickets he used from his account?