Professional CodeIgniter

(singke) #1

Chapter 2: Agile Methodologies and Approaches


32


Claudia asks about the “ buy now ” page and the actual Shopping Cart. You tell her that this page can be
mocked up tomorrow. After all, you need some time to assimilate everything you ’ re learning from this
meeting.

You decide to reuse your basic rectangle for your Category view. You explain that this is a generic view
that shows any list of products and/or other categories. For example, if you had a clothing category, it
might have certain subcategories associated with it: shirts, pants, skirts, and shoes.

A main category might even have individual products associated with it as well as subcategories, but at
this point Claudia says, “no”, that she wants to mirror the retail environment to some degree. In the
store ’ s inventory system, you would never see individual products associated with a high - level category
like clothes. You make a note that only subcategories can have products associated with them.

The result is a fairly simple Category view, featuring all the subcategories associated with a main
category or the products associated with a particular subcategory. The first type of view would list all
subcategories alphabetically, with subcategory name, description, and a link to view products within
that category.

When you ask if it ’ s possible to have categories or subcategories removed or deleted from the online store,
Claudia thinks long and hard and finally agrees to allow it. So now you know that you need to track some
kind of status (active or inactive, live or in progress) and only show the ones that are active or live.

Next you ask if you should show some kind of image next to each category name and description. After
some thinking, Claudia asks if it ’ s possible to pull a random image from a product associated with a
subcategory and use that. You tell her that, of course, it ’ s possible, but something else just occurred to
you: Is it possible for a product to be in more than one category at a time?

Claudia doesn ’ t even have to think very long about it. She shakes her head, no, and says that she keeps
things very organized in her store and intends to do the same online. So far, your diagrams for the
category views (category and subcategory) look like Figure 2 - 4 and Figure 2 - 5.

Figure 2-4
Free download pdf