You can see this
pager in Figure 4-2.
We decided to list only the featured products in the department page, and let the visitors
browse all the products by navigating to category pages. On a department page, the text above
the list of products is the description for the selected department, which means you??™ll need to
store both a name and a description for each department in the database. When selecting
a category from the categories list, all of its products are listed, along with the category title
and description. Clicking a product??™s image or title takes you to a product details page, which
you can see in Figure 4-3. The department and category boxes must retain their state when
a product is selected; this is a navigational aid for the visitor. A Continue Shopping link also
shows up, helping the visitor go back to the page he or she was visiting prior to selecting
a product.
Figure 4-3. Visiting a product details page
CHAPTER 4 ?– CREATING THE PRODUCT CATALOG: PART 1 66
When a category is selected, all its products are listed??”you no longer see featured
products. Note that the description text also changes. This time, this is the description of
the selected category.
Roadmap for This Chapter
As you can see, the product catalog, although not very complicated, has more parts that need
to be covered. In this chapter, you??™ll only create the departments list (see Figure 4-4).
Pages:
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137