In the past three chapters, we have toured around most of the templates of the VirtueMart catalog system. The major goal of these templates is to show off your products and help shoppers to find the products that fit their needs. When they have found what they need, the next logical step is certainly to place the product into their shop basket. From time-to-time, the shopper may need to refer to this basket. So we need to have ways to show this basket to the shopper. This is exactly what we are going to look at in this section.
As you may know, web technology is based on a stateless communication scheme. This means that when a user navigates to another page, all previous information will be lost unless it is specifically stored by the server or browser using cookies. PHP has a special global variable called $_SESSION
and a whole bunch of session functions to help record these data. This provision is used by VirtueMart to handle...