Add quantity to the Placement Model

Learn how to add a quantity attribute to the Placement model.

We'll cover the following

Notice that we are not saving the quantity for each product anywhere. Currently, we have no way to keep track of that. We can easily fix this just by adding a quantity attribute to the Placement model. By doing this, we save its corresponding quantity for each product.

Get hands-on with 1400+ tech skills courses.