Just need your advice. I have built a very basic cart. The user add products to the cart.
The cart is displayed by querying the users session id against the session id in the cart which displays the current products in the cart. This part I understand.
After this point the user either continues shopping or places the order.
Now this is part I am stumped on.
If a user already has an account they login and a session is created, the user is redirected after login which auto fills the form before confirming.
If a user does not have an account they fill in the form directly.
However how do I pair up the user with the cart to complete the order. How did you work this with your own cart?
Many Thanks