Writing shopping_product_page.inc

The shopping_product_page.inc and shopping_product_page-oo.inc files are very similar to the catalog_product_page.inc and catalog_ product_page-oo.inc files in Chapter 5. However, a few additions are required that allow the customer to order online. The file with the additions is shown in Listing 6-2. I describe only the lines that are changed in this section. For a complete description of all the lines, see the section "Writing the code for the products page" in Chapter 5.

The file for the procedural application is slightly different than the file for the object-oriented application. I first show the procedural file, and then I describe the changes needed to use the file with the object-oriented application.

The file shown in Listing 6-2 defines the look and feel of the Product page.

0 0

Post a comment

  • Receive news updates via email from this site