RE: FN-FORUM: Advice on building a shopping basket
date posted 11th May 2006 18:01
We do this for our e-commerce - will drop you a line later if you still
need to know.=20
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of D D
Glendinning
Sent: Thursday, May 11, 2006 9:25 AM
To: Andy Macnaughton-Jones
Subject: FN-FORUM: Advice on building a shopping basket
Good Morning All,
Right, I have been building this shopping basket for an online shop. I
had designed it so that the visitor needs to register and log in before
they may add items to the basket. When they are added, it checks for an
"Open" basket, and if there is one, adds the item to it (Order_Item
table), or else it creates a new empty shopping basket, tagged with the
user's ID.
This works really well, and has the added advantage that if they add
items to the basket, and then log out, the items are there for them to
continue with when they log back in.
The issue I now have is allowing non registered visitors to add items,
and then register at the checkout stage, rather than before. I have a
few ideas, such as creating a random session ID key, and using that
instead of the userID, and when they register, changing the random
session ID to the newly created UserID... But not sure.
No point in re-inventing the wheel if there is a standard practice for
this, so look forward to hearing from you with your thoughts!
Many Thanks,
Duncan
--
Duncan Glendinning
M: 07944797010
W: www.spider-consultancy.co.uk
--
Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414
or visit www.prosperity4.com and benefit from Inland Revenue approved
expenses today.
To advertise here: http://www.freelancers.net/advertising.html