O'Reilly logo

PHP 5 e-commerce Development by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Confirmation

The final stage, before payment, is to allow the customer to confirm their order. This involves displaying the order to the customer along with the selected shipping method, payment method, and delivery address. When the customer is happy with the order, we then must:

  • Create a new order
  • Create a new order item entry for each product in the basket
  • Create a new order item attribute association entry for each attribute selected for each product in the basket
  • Delete the contents of the user's basket
  • Send the customer to the payment page

Our confirmation page looks like this:

Confirmation

Storing orders in the database

The functionality we have developed in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required