View Single Post
Old 10-06-2002, 12:06 PM   PM User | #1
mat
Regular Coder

 
Join Date: Jul 2002
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
mat is an unknown quantity at this point
pseudo add to cart with coldfusion

On a result page i have listing the matching 'albums' it basically outputs a few things for each result (each matching album)

-Artist
-Album
-Price
-link to detail page
-add to cart link


this is a fake little project just for learning and the add to cart button does not yet do anything but i would like it to.

How can i make it so that when that 'add to cart' link is clicked a session / cookie is set containing that particular albumname or albumid.

Then later after you when you go to the fake checkout page the albums you previously 'added to cart' are listed.




It is after all just fake and for playing with, i figure there is a simple way to do it right?

on the checkout page all i have to do is something like:

SELECT albumName artistName etc
FROM tables
WHERE albumID = '#session.albumid#' ?


the question here is wether i use a session (dont know much about it) and how to get it to set the session when i click add to cart?
mat is offline   Reply With Quote