p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_howto thread: Shopping Cart

Message #1 by "Sam Pride" <sammytrailor@y...> on Fri, 16 Mar 2001 13:53:13
IMH, create a frame page is most intuitive and efficient when considering shoping cart design. Like
WebVan and many top etailers do.

From Ed.
----- Original Message ----- 
From: "Sam Pride" <sammytrailor@y...>
To: "How To" <proasp_howto@p...>
Sent: Friday, March 16, 2001 9:53 PM
Subject: Shopping Cart

> I am currently stuck designing a shopping cart for an online store i am 
> building. I have the rest of the noline store planend out(half coded) and 
> the only thing that has got me stumped is this shopping cart.
> To put it bluntly, I am stuck on ideas of how to do it. The few solutions 
> i have come up with so far wont cut it I dont think. These are:
> 1. Passing an array through the session object, which contains the product 
> id and qty, which would be matched with database entries on the actual 
> shopping cart page. One problem i have found is being able to save it. 
> Dont want to save to a database, which led me to the following solution:)
> 2. Cookies on the client holding same information that the array mentioned 
> above would have. (Can you pass an array to a cookie, or even populate an 
> array from the cookie?)This way i could set an expiry date that all the 
> data will be held etc. 
> I could also probably do it by populating a dictionary instead of an 
> array. But the book warned against sending a dictionary to the session.
> I have looked at others scripts that you can download off sites such as 
> aspCode.net, and all of the ones I looked at were extremely complex and 
> nestled into uncommented code (grrr. dont you just hate that???). I could 
> not see how most of them worked, all bar one, which was in development and 
> used an array. I have studied codes like this, and there is nothing that i 
> have found i can extract and learn from without killing myself (well not 
> literally, maybe a high level of frustration). I would much prefer to code 
> it myself, with help such as this, for i feel it will make me a better 
> programmer. 
> If there is someone who could help me, or has created a shopping cart, I 
> would be extremely greatful if you could help me. I am quite stuck. 
> Thanks in advance   

  Return to Index