O'Reilly logo

PHP 5 e-commerce Development by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Products and categories

For us to be able to sell anything on our site, we need to allow administrators to create products in the store. We also need to be able to edit and delete products, as well as create, edit, and delete categories.

Products

Let's look at how we can allow administrators to create, edit, and delete products within our store.

Creating a product

To create a product in our store, we need to:

  • Save standard information about the product such as the price, the name, the description, and so on.
  • Upload, resize, and save a photograph of the product.
  • Upload additional photographs of the product.
  • Save a shipping cost to be associated with the product, for each shipping method we have in the store.
  • Save the categories the product is part of. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required