My store is going to sell tickets for social events. Each registered user can buy a maximum of 4 tickets per event.
The specific modifications to a default osCommerce install are the following:
1) Replace the Qty. text field with a combo box in shopping_cart.php.
This combo box must show the range of avaliable tickets (1-4). For example, when the customer is buying the first time the combo box shows the range 1 to 4. But if the customer already bought 2 tickets, and he/she is buying again for the same event, this combo box has only Qty. 1 and 2 avaliable.
2) The customer must specify a person name for each ticket.
For example, if the customer is buying 3 tickets, [url removed, login to view] needs to show 3 text boxes in an additional column named Guests to enter the name of the person using each ticket and validate they are filled before proceed to checkout. The name of guests must be stored in the order details.