473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

cart cookies

I need to build my own simple cart that writes to cookies only. I can write
and read cookies, but don't have a clue as to how I can add multiple
products, change quantites, etc. All I need is a cart that stores
information in cookies and the user prints their order. That's it. Where can
I find such information?

thanks
Jul 19 '05 #1
7 1694
A cookie is just a text file. There are no columns, and there is no such
concept as "change the quantity"... if you change the data, you re-write the
cookie...

--
http://www.aspfaq.com/
(Reverse address to reply.)


"shank" <sh***@tampabay.rr.com> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
I need to build my own simple cart that writes to cookies only. I can write and read cookies, but don't have a clue as to how I can add multiple
products, change quantites, etc. All I need is a cart that stores
information in cookies and the user prints their order. That's it. Where can I find such information?

thanks

Jul 19 '05 #2
How about a tutorial on writing rows of data to cookies?
I understand writing one set of values, but a cart cookie would hold many
sets of values.
thanks

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
A cookie is just a text file. There are no columns, and there is no such
concept as "change the quantity"... if you change the data, you re-write the cookie...

--
http://www.aspfaq.com/
(Reverse address to reply.)


"shank" <sh***@tampabay.rr.com> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
I need to build my own simple cart that writes to cookies only. I can

write
and read cookies, but don't have a clue as to how I can add multiple
products, change quantites, etc. All I need is a cart that stores
information in cookies and the user prints their order. That's it. Where

can
I find such information?

thanks


Jul 19 '05 #3
> I understand writing one set of values, but a cart cookie would hold many
sets of values.


What, you mean like

Response.Cookies("row1") =
"Q=5,pID=sku67282,description=bra,price=15.99,size =36D"
Response.Cookies("row2") =
"Q=1,pID=sku67283,description=boxers,price=12.99,s ize=XL"
Response.Cookies("row3") =
"Q=2,pID=sku67284,description=teddy,price=44.99,si ze=4"

?

I don't know what kind of tutorial you're looking for. I also don't know
why you would want a cookie-only shopping cart. What advantage does this
give you over existing methods, for which source code is readily available?

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #4
I'm trying to get a fully functional website onto a CD. Along with that I
would like to add a simple cart where a user can add products and print out
their order. Hence, the need for cookies. I cannot send them to the internet
or write to a database. Doing that would be to friggin' easy...
thanks

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:ux**************@tk2msftngp13.phx.gbl...
I understand writing one set of values, but a cart cookie would hold many sets of values.
What, you mean like

Response.Cookies("row1") =
"Q=5,pID=sku67282,description=bra,price=15.99,size =36D"
Response.Cookies("row2") =
"Q=1,pID=sku67283,description=boxers,price=12.99,s ize=XL"
Response.Cookies("row3") =
"Q=2,pID=sku67284,description=teddy,price=44.99,si ze=4"

?

I don't know what kind of tutorial you're looking for. I also don't know
why you would want a cookie-only shopping cart. What advantage does this
give you over existing methods, for which source code is readily

available?
--
http://www.aspfaq.com/
(Reverse address to reply.)

Jul 19 '05 #5
How do you plan on running ASP code from a CD? Do you expect end users to
be able to install / configure IIS, and make a virtual directory pointing to
their CD-Rom?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"shank" <sh***@tampabay.rr.com> wrote in message
news:uT**************@tk2msftngp13.phx.gbl...
I'm trying to get a fully functional website onto a CD. Along with that I
would like to add a simple cart where a user can add products and print out their order. Hence, the need for cookies. I cannot send them to the internet or write to a database. Doing that would be to friggin' easy...

Jul 19 '05 #6
ActiveSite Compiler will do it. I've tried it and it works. The downside is
that it must use ASP and one other language like vbscript.

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:uy**************@TK2MSFTNGP11.phx.gbl...
How do you plan on running ASP code from a CD? Do you expect end users to
be able to install / configure IIS, and make a virtual directory pointing to their CD-Rom?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"shank" <sh***@tampabay.rr.com> wrote in message
news:uT**************@tk2msftngp13.phx.gbl...
I'm trying to get a fully functional website onto a CD. Along with that I would like to add a simple cart where a user can add products and print

out
their order. Hence, the need for cookies. I cannot send them to the

internet
or write to a database. Doing that would be to friggin' easy...


Jul 19 '05 #7
On Mon, 26 Jul 2004 20:45:48 GMT, "shank" <sh***@tampabay.rr.com>
wrote:
ActiveSite Compiler will do it. I've tried it and it works. The downside is
that it must use ASP and one other language like vbscript.
ASP isn't a language. VBScript (or Jscript) is the language used in
ASP.

Which brings up your assertion that you can't use a database. Which
you can, you just can't write to it. Which means you can have saved
queries though, and just store the query variables in the cookie, item
number and quantity for example. The description, price, etc. are all
retrievable.

Or write to a local file, running off CD you can still write to the C:
drive. Or stop trying to do this in ASP and do a VB front end, like
normal programmers. :)

Jeff


"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:uy**************@TK2MSFTNGP11.phx.gbl...
How do you plan on running ASP code from a CD? Do you expect end users to
be able to install / configure IIS, and make a virtual directory pointing

to
their CD-Rom?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"shank" <sh***@tampabay.rr.com> wrote in message
news:uT**************@tk2msftngp13.phx.gbl...
> I'm trying to get a fully functional website onto a CD. Along with thatI > would like to add a simple cart where a user can add products and print

out
> their order. Hence, the need for cookies. I cannot send them to the

internet
> or write to a database. Doing that would be to friggin' easy...



Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jason Burr | last post by:
I was wondering what the best approach to handling a shopping cart was. My concerns 1. Cookies not accepted (session variables not maintained and setting retreiving cookies doesn't work) 2. Use...
4
by: Fabri | last post by:
Classic ASP. Which is the best way (some links please) to write code for a cart in asp? Is there a way to write a cart that works also without cookies? Any help appreciated. Regards.
1
by: Adil Akram | last post by:
I have created a site shopping cart in ASP.net. I am using ASP session object's SessionID on non SSL connection to track session. While adding products to cart DB I insert product and SessionID...
6
by: Sparky Arbuckle | last post by:
I'm trying to calculate the subtotal for each item the customer has in the shopping cart. objDataReader("decPrice") is the price from my database field called decPrice. The .8 is for a 20%...
7
by: isaac2004 | last post by:
hi i have a basic asp page that acts as an online bookstore. on my cart page i am having trouble generating 3 numbers; a subtotal, a shipping total, and a final price. here is my code i would...
3
by: Milsnips | last post by:
Hi there, i had a small project where i used a session to store the shopping cart, but if it times out, the user loses the cart. Then i thought instead of using session, i'll store the cart in a...
1
by: nafe | last post by:
Am trying to implement a shopping cart in java script which is using cookies. I have a form consisting of itemID,quantity and price. these are details that the user has selected. below is the code...
3
by: Paulo | last post by:
Hi, beginner on asp.net 2.0 C# VS 2005, how can I use the shopping cart concept on my application? When the user clicks add item, it will be stored on some storage format, I dont know what is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.