What is a product attribute?#
A shirt comes in four sizes and three colours. That is one product you sell, and twelve things you count.
Attributes are how that gets modelled without twelve product records.
What a product attribute does: it defines a dimension such as size or colour, and each combination of values becomes a variant of the product with its own stock.
Attributes and variants#
An attribute is a dimension: size, colour, finish, capacity. Each has values - small, medium, large.
A product using attributes generates a variant for each combination. Four sizes and three colours produces twelve variants under one product.
The product carries what is shared - description, accounts, tax, unit. The variant carries what differs, and crucially carries its own stock.
Stock is per variant#
The reason this exists rather than being a labelling convenience.
Twelve variants is twelve stock balances. A delivery of medium blue draws from medium blue, not from a pooled shirt balance. Being out of large red is a different fact from being out of shirts, and only per-variant tracking can say so.
Costing works per variant too, so a variant that costs more to buy carries its own cost rather than an average across sizes.
Variant or separate product?#
The test: is it the same product in a different form, or a different product?
Variant - a shirt in three sizes. Same description, same accounts, same tax, differs only in a dimension a customer chooses.
Separate product - a shirt and a jacket. Different things that happen to sit near each other in a catalogue.
The borderline case is worth a moment. If two things have different accounts, different tax treatment or different suppliers, they are usually separate products even if they look like variations. Variants inherit from the parent, so anything needing its own treatment is fighting the structure.
Combinations multiply#
Three attributes with four values each is sixty-four variants. Four with five is six hundred and twenty-five.
Most of those combinations will not exist. Generating them anyway produces a product with hundreds of variants that will never be stocked, and every list and picker gets slower and harder to read.
Define only the dimensions you genuinely stock across, and generate only the combinations you actually carry.
Decide before you stock#
Adding an attribute to a product that already has stock and history is disruptive: existing stock belongs to no variant combination, and it has to be assigned somewhere.
Decide the dimensions when the product is created. Converting a plain product into a variant product later is possible and unpleasant.
Setting one up#
Go to Parameters → Product Attributes.
- Name the attribute - size, colour.
- Add its values.
Then on a product, choose which attributes apply and generate the variants you carry.
Common questions#
What does a product attribute do? It defines a dimension such as size, colour or finish. Each combination of its values becomes a variant under one product.
What is the difference between an attribute and a variant? An attribute is the dimension, with its values. A variant is one combination of them, such as medium blue, and it carries its own stock.
Should I use a variant or a separate product? Use a variant when it is the same product in a different form. Use a separate product when it is genuinely a different thing, or needs its own accounts, tax or supplier.
Can I add an attribute to a product later? It is possible but disruptive: existing stock belongs to no variant and has to be assigned. Decide the dimensions before you stock the product.
What happens next#
Variants appear wherever the product does - orders, receipts, deliveries - and each carries its own stock on the product ledger.