Prev | Current Page 429 | Next

Emilian Balanescu and Cristian Darie

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

You can also add a new product to the selected category by using the
text boxes located below the list of products.
You implemented these features in the typical fashion:
??? You implemented the core functionality using a Smarty componentized template named admin_products.
This is formed of the template file admin_products.tpl and its associated presentation object in
admin_products.php.
??? You integrated the new feature into the administration site by linking it from store_admin.
??? You wrote the supporting business tier methods and data tier stored procedures that can add a new product
to the database and read the existing products.
Administering Product Details
The products list you built earlier is wonderful, but it lacks a few important features. The final
componentized template you??™re implementing, admin_product_details, shows up when the
user clicks the Edit button for a product in the list of products. The template enables you to
??? View the product??™s picture
??? Remove the product from a category
??? Remove the product from the database completely
??? Assign the current product to an additional category
??? Move the current product to another category
??? Change the product??™s price and discounted price
??? Change the product name or description
When it comes to product removal, things aren??™t so straightforward. You can either unassign
the product from a category by removing the record from the product_category table, or
you can effectively remove the product from the product table.


Pages:
417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
Niederlande - Hotels weltweit programy pozycjonowanie download Everest Poker