View Full Version : Is it possible to build a JS Shopping Cart w/out a database?
09-26-2005, 05:22 PM
Seems like a strange questions, but I am trying to figure out how to build a shopping cart with JS and no database. The function is not to actually order products, but to select which products you want and to end up at an invoice type page. I don't need the information stored, once the invoice is created, the info does not need to be kept. Here is an example
page 1 - select products
page 2 - calculate bundled price & 'if sold seperately' price
add in other taxes and surcharges to products chosen
Add in Installation fees (if applicable)
mulitply the total bundled price by 2 to get deposit required (if applicable)
Give product description to the products choosen.
And finally print the page.
Is this possible with just JS or is more required?
09-26-2005, 07:13 PM
09-26-2005, 10:55 PM
I saw lots of problems with that script so I wrote my own version from scratch that works similarly and has all the proper processing included to handle the user typing to overtype values or use the back button etc that the one at HTML Goodies stuffs up on. You can see how it works and get a copy from at http://www.felgall.com/jstip39.htm
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.