I’m lost. I’m trying to build a shopping cart checkout system that works from the cashier side, not the customer side. I’ve tried adapting other shopping carts, but can’t figure it out.
First, my customers are all registered users. So each customer is listed in the Users collection, and each has a unique User ID number.
I also have a list of tools, movies, etc available for borrowing, in a LibraryItems collection. Each item has a unique Item number.
The customer walks into my physical store and chooses several items to borrow.
At the checkout counter, my cashier will open the app and enter the customer’s User ID number. This part works, and the next screen does confirm the user’s ID/name, via a relationship with the Users collection.
Next, the cashier will start creating a new shopping cart, by entering the ID numbers of each item to be borrowed. Here’s where I’m running into problems.
First, I can create the cart (in a Cart collection), but all it does is create blank entries (only showing creation date). No other info. My Cart collection has a relationship to the LibraryItems collection, but I don’t know how to add the borrowed item to the cart.
Second, I don’t know how to tie the cart to the user who is borrowing the items. The cashier operating the app is not the user who owns the cart. I think I I need a relationship between the Cart collection and the Users collection, but I’m not sure how to set this up.
This is essentially a simple shopping cart, but a) there is no payment (just a checkout system and a record of who checked out which items) and b) it’s handled by. the cashier rather than the customer.
I’d really appreciate any help here!