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:


Storing orders in the database

The functionality we have developed in ...

Get PHP 5 e-commerce Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.