Fixing a bug by selecting a product variant

This one is slightly more involved than the rest. Before we added the ability to create new products, we were assuming that every combination of color and capacity would have a corresponding variant. For example, if we have a phone with two color options and two storage options, we would have four product variants in total. However, when building out the UI to add these on the fly, it became apparent that this isn't the case, as we may not want to sell every combination. In fact, the way our UI works means we only add the specific combinations we want.

For example, suppose we add three product variants to a new product, each of which has a different value for color and storage than the others. ...

Get ASP.NET Core 2 and Vue.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.