I need to add something to a websites that will work about the same way as a shopping cart. I will need to have products with "add to cart" buttons next to them, and that will add into the cart. and when the person is finished shopping they click submit and instead of it going to a payment page it will just send an email with the details of what was purchased.

What will be the best way to do this?

I can set up a form where a person could put in product numbers or descriptions and that will email. But I don't know how I could add buttons that will add info to the form.