Build An XML Powered PHP Shopping Cart

In this series of videos, you learn how to build a PHP based shopping cart that works with Paypal. Some highlights:

  • Learn to use object oriented techniques!
  • This shopping cart ‘talks’ to Paypal so you can do live credit card and Paypal processing!
  • Learn how to create XML documents and how to process them with PHP.
  • You will also learn a few ‘best practices’ when it comes to programming.


Stefan Mischook

  • Part 1: Introduction
    Running Time:

    We’ll quickly go through what the end result our project is supposed to look like and some of the tools that will help us get there.

  • Part 2: Technology Overview
    Running Time:

    A better look at the technologies as well as some of the tools we’re going to be used to build our PayPal shopping cart. We’ll also do a bit of refactoring and explain some of the benefits of using an IDE (integrated development environment).

  • Part 3: Building an XML Catalog
    Running Time:

    Using XML as our data storage format, we’re going to create a catalog of items for our shopping cart.

  • Running Time: 15:30

    We’re going to put some skin on that catalog and start making it look a little more like a page to buy items and a little less like the index of a phone book.

  • Running Time: 12:54

    With our catalog completed, we’re going to tidy up – or refactor – our project and get ready to build the ShoppingCart object.

  • Running Time: 15:58

    We’ll cover how we can use the $_SESSION array in PHP to store our customer’s order as they navigate our website and add items to the shopping cart. We’ll also start building the Shopping Cart class and look at some object-oriented programming concepts.

  • Part 7: Building the Shopping Cart

    Running Time: 15:54

    We will be adding the major functionality of our shopping cart class in this video and getting it ready for calculating subtotals and totals with shipping costs.

  • Part 8: Calculating Cost

    Running Time: 7:37

    We’ll be creating templates for our checkout page in order to have a proper line-item for each product with the necessary cost details.

  • Part 9: Shipping Cost

    Running Time: 10:09

    Now that we have the individual items lined up in our checkout page, we can add the shipping costs.

  • Part 10: Finishing the Cart Template

    Running Time: 8:38

    We’re finally done writing our shopping cart class! Now we can put it to work with our newly created checkout page.

  • Part 11: Sending Data to PayPal

    Running Time: 11:36

    PayPal requires a collection of preset hidden form elements on form submission. These elements act as the glue between our shopping cart and their website, and we’re going to flush them out in this video.

  • Part 12: PayPal Sandbox Integration

    Running Time: 12:31

    We’re going to go through the steps needed to create a PayPal Sandbox account. This tool lets us complete transactions without having to pass money through PayPal.

  • Part 13: A Quick Look at PayPal’s IPN

    Running Time: 5:47

    PayPal’s IPN (Instant Payment Notification) is a handy way of knowing when a transaction has been completed successfully. We’ll quickly go over how we can pick up data collected by PayPal and how it can be used to track orders after they’ve been placed.



  1. Wonderful publish, very informative. I’m wondering why the opposite specialists of this sector don’t understand this. You must continue your writing. I’m sure, you’ve a great readers’ base already!|What’s Taking place i’m new to this, I stumbled upon this I’ve discovered It absolutely helpful and it has aided me out loads. I am hoping to contribute & aid different users like its aided me. Great job.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s