Added checkout function to cart.