Prev | Current Page 430 | Next

Emilian Balanescu and Cristian Darie

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

Because products are accessed
in the catalog by selecting a category, you must make sure there are no orphaned products
(products that don??™t belong to any category).
There will be two delete buttons: a ???Remove from category??? button, which allows removing
the product from a single category, and a ???Remove from catalog??? button, which completely
removes the product from the catalog by deleting its entries in the product and product_category
tables. If the product belongs to multiple categories, only the ???Remove from category??? button
will be active. If the product belongs to a single category, only the ???Remove from catalog??? button
will be available. This way, we offer the necessary features to administrators, and we avoid
creating orphaned products that don??™t belong to any categories.
Take a peek at the product details administration page in Figures 11-4 and 11-5, and go
ahead and implement it by going through (another exciting) step-by-step exercise.
CHAPTER 11 ?–  CATALOG ADMINISTRATION: PRODUCTS AND ATTRIBUTES 327
Figure 11-4. Administering product details
Figure 11-5. Viewing and editing product pictures
CHAPTER 11 ?–  CATALOG ADMINISTRATION: PRODUCTS AND ATTRIBUTES 328
Product Details: Implementing the Presentation Tier
Note that, because there??™s quite a bit of code to write, we??™re implementing (and explaining) the
presentation tier, business tier, and data tier for the product details administration feature in
separate step-by-step exercises.


Pages:
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
Namioty Mazury i interesująca cena Szkoły policealne fryzjer w warszawie need cash fast bad credit perfumy fm świnoujście noclegi