Your Product Variants Are a Database Problem, Not a Dropdown
Adding sizes and colors to a product feels like a UI tweak. Underneath, it is a data modeling decision that breaks inventory, pricing, and sync later.
Every store starts the same way. One product, one price, one photo. Then someone asks for a medium and a large, then a red and a blue, and suddenly you need a dropdown. Easy, right? Add a field, add some options, ship it.
That dropdown is the easy 10%. The hard 90% is everything underneath it, and most stores don't find out until the inventory numbers stop matching reality.
A variant is not a label, it's a row
A size and color combination isn't a tag on a product. It's its own entity with its own SKU, its own stock count, its own weight for shipping, sometimes its own price, and often its own barcode for your warehouse or POS system. If your data model treats "variant" as a string on the product record instead of a first-class table with its own identity, you don't have a variants feature. You have a naming convention that will eventually lie to you.
This matters the moment you plug in anything else: a fulfillment partner, a marketplace listing on Amazon or Etsy, a point-of-sale system in a physical store, or a wholesale order sheet. Every one of those integrations expects a stable SKU per variant. Retrofit that after launch and you're writing migration scripts instead of features.
Where it actually breaks
- Inventory sync: two channels selling the same variant without a single source of truth for stock will oversell it. This is almost never a "bad luck" bug, it's a missing source-of-truth decision made at the schema level.
- Pricing: a discount applied to a "product" instead of its variants either applies to all of them when you meant one, or silently skips the one your customer actually wants.
- Images: customers expect the photo to change when they pick blue. If images are tied to the product and not the variant, you ship a feature that looks broken even when the data is right.
- Discontinuing one variant: if a size sells out for good, can you retire just that row without breaking historical orders that reference it? If the answer is "we're not sure," that's the schema talking.
The fix is boring, which is the point
None of this needs clever engineering. It needs a data model where the variant is the atomic unit that holds stock, price, SKU, and media, and the "product" is just the grouping that the storefront displays. Get that right at the start and a new color is a row insert. Get it wrong and a new color is a Tuesday spent reconciling spreadsheets.
This is exactly the kind of decision that's cheap to make correctly on day one and expensive to unwind after your catalog has a thousand SKUs in it. If you're scoping a store or a catalog system right now and want someone to sanity check the data model before you build on it, that's a fast conversation, and it's the kind of thing we'll look at for free through our MVP offer. If you're already past that point and the spreadsheets are multiplying, get in touch and we'll help you figure out what's worth rebuilding versus patching.
Want to build something like this?
Cedrix ships production-grade software fast — and even offers a free 10-day MVP so you can see your idea working before you commit.