Simple JavaScript & XML cart
Here is a simple JavaScript & XML shopping cart I made. Product data is stored in a single XML file, which is referenced by the rest of the web site’s JavaScript code.
JavaScript makes the application pretty sweet since all of the processing is dependent on the user’s computer; no need to worry about server resources. It also helps to make a smooth experience by providing instant feedback to users’ actions in areas like the view cart and checkout pages.
Ultimately, it shouldn’t be relied on since JavaScript can simply be disabled and it cannot perform true form validation. However, portions of it could be incorporated into an existing server-side shopping cart to improve its interface and usability.
Notes
The web site does not collect/store any data, so feel free to play around with it.