Custom Php e commerce question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Katrina
Forum Newbie
Posts: 3
Joined: Sun Sep 22, 2013 12:33 am

Custom Php e commerce question

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Custom Php e commerce question

Post 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?
Katrina
Forum Newbie
Posts: 3
Joined: Sun Sep 22, 2013 12:33 am

Re: Custom Php e commerce question

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Custom Php e commerce question

Post 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)?
Katrina
Forum Newbie
Posts: 3
Joined: Sun Sep 22, 2013 12:33 am

Re: Custom Php e commerce question

Post 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.
Post Reply