I think this is the appropriate place for this kind of post. So I am building an ecommerece website. I have users table and the orders table. Each user can have many orders.
I add registered user orders in the shopping cart and then they proceed to checkout.
But if user is guest user . He just comes and place order.
How can I get orders of this guest user . Which criteria should i use to filter out orders of this guest user.
This is more of an implementation detail question.
Any suggestions will be much appreciated.