-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Boehm
Sent: April 8, 2002 10:46 AM
To: [EMAIL PROTECTED]
Subject: [CFTALKTor] Maintaining StateWe have a client who wants to sell a number of his products on his website. He is using only HTML. We have Coldfusion and an Access database. The question is "How can his clients add different products to a list that he would then send to us where we would take the credit card and shipping information and process the order?". How can he maintain state across calls to multiple pages?
Failing that, he could send us the productid/quantity data each time his clients want to add something to the shopping cart but how would we be able to know which items were to go with which client currently accessing his site. Would he still not have to maintain some sort of state across pages and send us a client id number?
He is suggesting that cgi might work but doesn't know how. I am not familiar with it. Any thoughts and suggestions are gratefully appreciated.
David Boehm
Website & Database Management
Product Ordering On-Line
M&T Printing Group
907 Frederick St. Kitchener, ON Canada
N2B 2B9
(519) 571-0101 Fax (519) 571-0129
[EMAIL PROTECTED]
Title: Maintaining State
David,
You
have to look at this situation differently. It isn't HIS site that needs to
maintain state, but yours.
What
you should do is have a standard reference to a URL on your site from which his
site passes parameters for product ID and quantity (defined by filling in a
basic form). When that data is passed to your site, you either begin a user
session for the individual or force a cookie on the user's machine (no cookie,
no shopping is an acceptable policy in this instance, in my books). What you
then do is track the user and the products sent to your page (likely in another
window with a constant target reference from his site [i.e.
target="shoppingcart" in form action strings]) and aggregate them on a total
page using CF. From there, the rest is easy.
If you
want some help implementing this, I'm in the market for some freelance
work.
Cheers.
Jeffrey Haas
- [CFTALKTor] Maintaining State Dave Boehm
- RE: [CFTALKTor] Maintaining State Jeffrey Haas
- RE: [CFTALKTor] Maintaining State Steve Budan
