Just give them all the same ID in the cart and set to replace if item is in the cart. Set all of the ID values to 1. If you want to store the ID, create another column to store that in so that items always have the same ID. This in conjunction with using the replace option in the add to cart button will accomplish what you need.