miraclemaker
Programmer
I know this is not really the right forum for this question, I couldn't think of the best place for it, but I know there are some smart people in here so I thought I'd pick your brains.
We run a membership program on our website. When someone signs up they are sent an email to their account that contains a link they must click to verify their email address in the standard way.
Now we are developing our own eshop (it is currently provided by a third party), I have come across a fiddly problem.
If a user is already a member, we can link their order to their userid when they place an order and everything is fine.
If someone who isn't already a member places and order we need to create them an account at the same time, this is where the problem is:
* we really don't want the user to leave the shop and wait for a 'verification email' before we let them continue with their purchase, as there's a chance they won't come back
* However, we also don't want to just add them to the database as an unverified user and leave it at that, as there's a chance that they won't activate their account (or they provided a bad email address) and accounts that aren't activated get deleted after two days. If their account gets deleted, it will leave an 'orphan' order in the eshop orders that has not member record associated with it, which is obviousely bad.
Has anyone got any good ideas for how I can get round this? Any kind of useful discussion would be good. How does Amazon do it? etc.
Thanks.
We run a membership program on our website. When someone signs up they are sent an email to their account that contains a link they must click to verify their email address in the standard way.
Now we are developing our own eshop (it is currently provided by a third party), I have come across a fiddly problem.
If a user is already a member, we can link their order to their userid when they place an order and everything is fine.
If someone who isn't already a member places and order we need to create them an account at the same time, this is where the problem is:
* we really don't want the user to leave the shop and wait for a 'verification email' before we let them continue with their purchase, as there's a chance they won't come back
* However, we also don't want to just add them to the database as an unverified user and leave it at that, as there's a chance that they won't activate their account (or they provided a bad email address) and accounts that aren't activated get deleted after two days. If their account gets deleted, it will leave an 'orphan' order in the eshop orders that has not member record associated with it, which is obviousely bad.
Has anyone got any good ideas for how I can get round this? Any kind of useful discussion would be good. How does Amazon do it? etc.
Thanks.