Page 1 of 1
Custom Php e commerce question
Posted: Sun Sep 22, 2013 12:46 am
by Katrina
Hi a new marketplace site that was build for e commerce is up and running but when the items are added to the cart and then a new customer creates a New account, the items are gone from the cart. This is common for new customers coming onto a site to add items to a Cart first before creating an account to buy. It is build on custom php and just would like if you anyone could offer any advice on how we can correct this? We do not have a guest checkout because of the marketplace aspect.
Thank you
Katrina
Re: Custom Php e commerce question
Posted: Sun Sep 22, 2013 12:49 am
by requinix
Well, the first question is whether you're looking to pay someone to fix this or if you're comfortable with us leading you through the solution.
Assuming the latter, you'll need to post some code. What is the code that adds to the cart and what is the code that logs users in?
Re: Custom Php e commerce question
Posted: Sun Sep 22, 2013 12:55 am
by Katrina
I was just looking for any free advice someone might be able to provide. I am just an intern but my developer and I are trying to figure out what would could be causing the items in the cart to delete after someone creates a new account but not if you are logging in as an existing user.
Thank you
Re: Custom Php e commerce question
Posted: Sun Sep 22, 2013 2:39 am
by requinix
I would guess that the shopping cart items are being stored in the session, and that the session is cleared (or the items are specifically removed) during creation of a new account and, the first place I would check, where they get automatically logged in. Maybe a call to session_destroy() or session_regenerate_id(true)?
Re: Custom Php e commerce question
Posted: Sun Sep 22, 2013 8:52 am
by Katrina
Thank you so much. I will speak to my developer and have him look into that and see is that helps him resolve the problem.