Collecting Items into a Store
Depending on the nature of the company, the actual store part of a Web site can be a sprawling, category-driven affair, or something quite simple. Because Orange Whip Studios has relatively few products for sale (less than 20 rows exist in the Merchandise table), the best thing might be to create a one-page store that displays all the items.
Listing 22.2 outputs all the items currently available for sale in a two-column display, using ordinary HTML table tags. Because the job of actually displaying the product’s name, image, and associated links is encapsulated within the <cf_MerchDisplay> Custom Tag, this simple storefront template turns out to be quite short.
Figure 22.1 shows what this storefront looks like in ...
Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.