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.
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. ...