Show the code that doesnt work
unable to save data when a user is logged in or using session in laravel
I have an eCommerce project whereby a user adds his product to cart whether they are logged in or not..when they are logged in their user_id is saved on the database and when they arent, the session_id is saved for the and the user_id is saved as zero..I want to achieve this, for the user to proceed to the checkout page they have to log in or create an account. this works perfectly for the users who added products to the cart when they were logged in but for the users who logged in at the cart section, at the checkout page the products in the cart disappear. how can I show the products in the checkout using the sesssion_id..
Please or to participate in this conversation.