Prev | Current Page 124 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

In Figure 4-1,
you can see the TShirtShop front page and two of its featured products.
Note the departments list in the upper-left corner of the page. The list of departments is
dynamically generated with data gathered from the database; you??™ll implement the list of
departments in this chapter.
When site visitors click a department in the departments list, they go to the main page of the
specified department. This replaces the store??™s list of catalog-featured products with a page containing
information specific to the selected department??”including the list of featured products
for that department. In Figure 4-2, you see the page that will appear when the Seasonal department
is clicked.
CHAPTER 4 ?–  CREATING THE PRODUCT CATALOG: PART 1 64
Figure 4-1. TShirtShop front page and two of its featured products
Figure 4-2. Visiting the Seasonal department
CHAPTER 4 ?–  CREATING THE PRODUCT CATALOG: PART 1 65
Under the list of departments, you can now see the list of categories that belong to the
selected department. On the right side of the screen, you can see the name of the selected
department, its description, and its featured products. When a particular page must display
a larger number of products than a predefined value, the products will be split into more subpages,
and a pager shows up to allow the navigation between these pages.


Pages:
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136