class. it adds the product to the user shopping list. now that user x (which is created some times earlier) wants to login and buy something. i shall create an instance with datas from user x to use that method? for example:
y = Costumer("datas from user x")
y.add_to_cart(product)?
I don't get the difference between customer and user. Choose one
i mean the costumer. user is a more general term that i use to refer to both costumer and seller. because the app is consisted from three parts. costumers panel, sellers panel and the admin panel. now for example a costumer want to login i shall recreate an instance from the data i have in database? how to handle multiple costumer login? or if it wants to sign up i should create its instance and store it's data in database?
After the login you collect the matching orders and show them somewhere
Обсуждают сегодня