September 2007
Intermediate to advanced
600 pages
20h 21m
English
Now that a storefront has been constructed with Add To Cart links for each product, it’s time to build the actual shopping cart. This section creates two versions of a ColdFusion template called StoreCart.cfm.
If the StoreCart.cfm template is visited without any URL parameters, it displays the items in the cart and gives the user the opportunity to either change the quantity of each item or check out, as shown in Figure 22.2. If a MerchID parameter is passed in the URL, that item is added to the user’s cart before the cart is actually displayed. You will notice that the Add To Cart links generated by the <cf_MerchDisplay> Custom Tag (refer to Listing 22.1) do exactly that.
Read now
Unlock full access