Order placement is a single atomic transaction
Validate address, validate cart, check stock per line item, snapshot price and discount onto the order items, decrement available quantity, increment sold quantity, clear the ordered items from the cart, commit. Any failure rolls the entire thing back. Snapshotting the price means a later price change can never rewrite order history.
A longer transaction holding more locks, in exchange for never having a partially-placed order.