More work on the checkout process, and fixed bug in customer.php, which was causing an error when the cart was loaded on login.