Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Shopping Cart

Is there any tutorial where I can learn to create a shopping cart for an online store? If there isn't, can someone suggest a place where I can learn that from? I don't want to use PayPal integration.

2 Answers


Google is your friend and you can simply search for PHP tutorials on building shopping carts. Now keep in mind that building shopping carts in PHP requires Object Oriented Programming most of the time; so unless you know PHP OOP you are going to have some difficulty understanding. If you want, you can wait til Monday and take the PHP OOP course and that can assist in understanding OOP. (It didn't take me long to master PHP OOP so hopefully it shouldn't for you) The following are a few tutorials I found on Google on how to build a simple shopping cart in PHP:

You can also take an existing shopping cart application like: http://www.sourcecodester.com/php/4220/how-build-shopping-cart-w-checkout-php.html and look at the code and learn from there.

Hope you find something that you can use.


Thanks so much! :) I'll take the PHP OOP course and check out one of these tutorials.