The system now correctly checks if enough of item is available in the warehouse. Also, if an item already exists in the shopping cart, it is incremented instead of adding a new row.