Measurements and units
A measurement family defines a standard unit and the units convertible to it. Using one instead of a plain number stops conversion bugs before they start.
Why not a plain number
Storing 10 in a length number attribute and putting "mm" in the label works
right up until:
- A customer in the US needs inches.
- Somebody enters
1.0meaning centimetres. - You want to filter "up to 50 mm" across products where some were entered in cm.
- An export has to declare the unit, and there is nothing to declare.
A measurement attribute stores the value and its unit, and the family it belongs to knows how to convert between the units.
Create a measurement family
- Go to PIM › Data model › Measurements.
- Select New measurement family.
- Enter a Code and the Labels (i18n), for example
length. - Set the Standard unit. Every other unit in the family is defined relative to it, so choose the one you want as the canonical base: millimetres for length, grams or kilograms for weight.
- Add the Units you accept. Each has a Code, a Symbol and a
Convert factor, the multiplier to the standard unit. With
mmas the standard unit,cmhas the factor10andmthe factor1000.
Typical families for a technical catalog: length (mm, cm, m, inch),
weight (g, kg, t, lb), pressure (bar, psi, kPa), volume (ml, l, m³),
temperature, torque (Nm, lbf·ft), power (W, kW, HP).
Use it on an attribute
Create the attribute with type Measurement (metric), set its Metric
family to the family and its Unit to the unit that is entered by default,
and decide whether Decimals allowed applies. When somebody edits the
product they enter a number and pick a unit; both are stored together.
What it buys you
- Filters that work across units. "Up to 50 mm" catches products entered in centimetres.
- Per-market display. The same product shows mm in Germany and inches in the US, without a second attribute.
- Correct exports. BMEcat and punchout formats require a unit of measure; with a measurement attribute there is one to emit.
- Comparison. Two products entered in different units still sort correctly.
Units of measure vs. packaging units
These are different things and get confused.
- A measurement describes a physical property of the article: it is 10 mm long.
- A packaging unit describes how you sell it: singly, in a box of 100, on a pallet of 48 boxes.
Packaging and order units belong with pricing and logistics, not here. See Pricing for price-per-unit and minimum order quantities.
Next
You have a data model. Now fill the catalog.