Well, there are thousands of templates for carts! But, there is also thousands of free sample code to do it
yourself. If you already have the sales pages created, you can simply store your list of products inside a
simple array. Then, whey you create the email, just format it to look “pretty”.
What are you selling, how far have you gone as yet, do you have the sales pages done?
Or, do you want a full sales program? If so, look at Prestashop. They have free versions that will set up
an entire sales store on your server for you. They have a control panel where you can add products and
set options. Very complete and I have set up one of the free versions. You just copy it to your server and
run the install command. It creates the database tables, the sales site, the control panel site and everything.
But, a simple cart is just an array you alter adding/deleting projects and quantities. Not hard to do…
There is a lot of “parts” to a cart. To do it right, you should keep all of the items or products and a lot of
other things inside a database. There are thousands of tutorials on how to do that. Here is one that
covers just about all parts of creating a cart in PHP and using MySQL. It might help.
http://code.tutsplus.com/tutorials/build-a-shopping-cart-with-php-and-mysql–net-5144
Study a bit and give it a try. And, feel free to ask if you get stuck! Good luck!