The size values that make every product directly comparable.
A Quantity is a quantitative attribute that defines the measurable amount of a product—used to support unit comparisons, pricing logic, substitution accuracy, and filtering. Each Quantity is composed of two parts: number (the numerical value) and unit (the unit of measure). Together, they form the complete standardized Quantity assigned to a product.
Size data stored as strings is useless for comparison. Structured Quantity values make size a queryable dimension.
String-Stored Size Cannot Be Compared
'12 oz' and '340 g' are the same weight — but stored as strings, no system can compare them. Structured Quantity values normalize to a base unit and make every size directly comparable.
Size Mismatches in Substitution Frustrate Shoppers
Without structured size data, substitution engines cannot match by size tier. A shopper who chose a 12 oz product receives a 32 oz substitute — and rejects it immediately.
Price-Per-Unit Requires Normalized Quantities
Calculating and displaying price per ounce requires that every product's quantity is normalized to the same unit. Free-text size data makes this calculation unreliable at scale.
How Quantity Works
Quantities are essential for: substitution logic, unit normalization and comparison, and value-based APIs. All Units are grouped into standardized QuantityTypes like Volume, Weight, Count, etc., ensuring consistency across categories.
01
Canonical, Normalized Size Values
Every Quantity value is normalized to a base unit. 12 fl oz, 354 ml, and 0.354 L are the same value in Prodx — stored once, queryable from any unit.
02
Powers Price-Per-Unit
With normalized Quantity values, Prodx computes and serves price per base unit across every product in a category — enabling the price transparency shoppers expect.
03
Feeds Size-Based Filtering
Structured Quantity values become filter dimensions. Shoppers can filter for '12 oz' products, or 'under 1 lb' products, because the data is typed and normalized.
Examples
Ready to normalize your size data?
See how Prodx Quantity makes every product size structured, comparable, and substitution-ready.