Glossary
What is a SKU?
DefinitionA SKU (stock keeping unit) is a retailer’s own code for one sellable item, such as one size and colour of a shirt, used to track stock, orders and prices.
SKUs explained
Every item you can sell separately needs its own SKU. A shirt in four sizes and three colours is 12 SKUs, because each combination has its own stock level. In Magento, each option of a configurable product is a simple product with its own SKU.
SKUs get mixed up with:
- SKU: your own product code. Made up by you, and unique inside your business.
- GTIN (EAN if you’re in Europe, or UPC in North America): the barcode number, unique around the world and usually assigned by the product’s manufacturer.
- MPN (manufacturer part number): the maker’s own internal code for this product, and what buyers often search for if they’re shopping in trade.
A good SKU format is short, readable and consistent. Something like JKT-RDG-M-NVY tells a member of staff what it is at a glance. Avoid spaces and characters that cause trouble in spreadsheets, and don’t build in things that might change, such as the supplier.
Two rules save headaches later. Never reuse a SKU for a different product, even years later, because old orders and reports will point to the wrong thing. And when a product is discontinued, keep its code findable and point it to the replacement, because trade customers will keep typing the old code long after you’ve stopped selling it.
Ottla
How SKUs relate to Ottla
Part-number search, part of the Ottla Magento module, matches SKUs, part numbers and barcodes, including partial codes and codes typed with or without separators.
Matches appear as compact rows with price, availability, a quantity box and Add to basket, straight from the search box. Discontinued codes can point to their replacement, so an old code still leads somewhere useful.
- Partial codes and codes without separators match
- Quantity box and Add to basket in the results
- Old codes point to their replacements
Questions
SKU questions
Short answers to what people ask next.
What’s the difference between a SKU and a barcode?
A SKU is your own code for an item. A barcode number (GTIN or EAN) is a global code, usually from the manufacturer, and the same everywhere the product is sold.
Should SKUs carry meaning?
Patterns that are short, readable and make sense to staff, like a product type, a product range, size and colour. Keep them stable over time, and don’t include things that might change.
Can shoppers search by SKU in Magento?
Exact SKUs, yes, if the SKU attribute is searchable. Partial codes and codes typed without separators depend on how your search is set up.
Related terms and reading
Configurable product
A configurable product in Magento is the parent product with options, e.g. size or colour. Each option is a simple product with its own SKU.
Customer group
Customer groups in Magento allow you to segment your customers. Maybe they’re retail, trade or wholesale. You can set prices, tax class, promotions and catalogues for each group.
Search autocomplete
As a customer types into your search box, they’ll see suggestions. This can include products, categories and popular searches.
B2B and trade
Trade prices, search by part number and company accounts.
Try Ottla free for 14 days
14 days free, no card needed. Works with Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9.