Xtensible Shopping Bag - free
Last updated: 07/19/99, v1.0 (Initial Release)
Shopping bags have always been one of my favorites - I have implemented quite a lot flavors of these, with the last one being
an XML implementation in ASP (presented in my latest book "Teach Yourself ASP 2.0 in 24 Hours").
This one was fairly neat in that you were storing XML as a string Session variable, however, the code didn't look too good and you had to
be knowledgeable about XML.
This is why I not only ported it to a Visual Basic component, but also extended the implementation by some important details. In addition
to storing common shopping bag data (product id, product name, price per unit, quantity), it automatically totals an item as well as the entire
shopping bag. And you don't have to know anything about XML.
If the properties that are automatically stored for each product are not sufficient for your shopping solution, you can easily
store additional properties via calls to item.SetValue(...) and retrieve them again with item.GetValue(...). Guess why
it is called the Xtensible Shopping Bag (XSB)! Now I never again have to implement a new shopping bag solution.
The two outstanding features of XSB are: extensibility via custom properties, and scalability because you don't need to store
an object in a Session variable - the XML data is sufficient, which is very small. See the sample shopping solution on how to implement it!
Installation and Download
XSB is implemented in Visual Basic 6.0, therefore you need to have the VB6 runtime installed. If you don't, simply choose
to download the installation version, which will install all necessary files (the samples only come with the first, smaller
download package). Another requirement is Internet Explorer 5.0, because of the XML 1.0 engine that ships with it (you can install
the engine only also, however, the full install is recommended).
Before using the component you have to register it using the regsvr32 utility:
Component and Samples only (size is approx. 20KB)
The most current version number of the component is 1.0. It is compiled with Visual Basic 6.0 SP3.
Installation Version of XSB (NO samples) (size is approx. 1.35MB)
Download this file if you don't have the Visual Basic 6.0 runtime on your server. The setup program will install the
component and the necessary files. To get the ASP samples, you also need the Component and Samples download.
If you do have any questions, please feel free to send mail to Christoph Wille.