...

View Full Version : javascript shopping cart - storing variables??????



ozman
06-13-2003, 09:03 AM
im using a simple javascript shopping cart all on one page, a few products, order form and check out.

i want to have another page with other products on. problem is i need a script mod so that if a user clicks 'add one to cart' it remembers this product, so that when u go to the next page and pick another product, etc and then back to the order form it remembers all the items 'added'.

can anyone help with this, its doing my head in!!!

thanks in advance to anyone that can. the page in question
http://www.dj-world.com/safeshopping/pages/index2.htm

have a click around and u will see what i mean.

thanks
ozman

Skyzyx
06-13-2003, 04:29 PM
Use cookies.

http://www.skyzyx.com/scripts/cookies.php

ozman
06-14-2003, 07:23 AM
thanks for that. i have no idea how u would build cookies into the script. if anyone does or you do, pls let me know. as i sell records and other dj stufff, may be we could do a swap?

pls let me know, as i really need this working.

cheers

ozman



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum