Skip to lesson

Milestone project: placing orders and order history

Placing an order changes three tables at once (orders, order_items, products), so it must be one transaction: either the order, its items and the stock change are all saved, or none of them is.

Sign in to continue this lesson

Create an account to read every lesson, practise with the exercises and keep track of your progress.