What is a variant, and why is it the centre of stock problems?
A variant is every separately sellable combination under one product page: "Blue, size M" and "Blue, size L" are two variants, each with its own stock code, price and stock quantity. Because stock, barcodes and shipping work at variant level, a badly built variant structure breaks stock counts, campaign prices and ERP sync together.
Platform limits shape the design too. For example, according to the Shopify Help Center, a product can have up to 2,048 variants and 3 options (such as size, colour or material). Limits differ between platforms; draw your product model around how your stock really works, not around one platform's ceiling.
Five design rules for size-and-colour products
The rules below are general good practice and the author's recommendation; they are not taken from any one platform's documentation.
- Keep the stock code (SKU) at variant level. If the product code is "TSH-001" and the variant code follows a predictable pattern such as "TSH-001-BLU-M", ERP matching needs only one rule.
- Give every variant its own barcode. Sharing one barcode between two sizes makes errors in counting and order picking unavoidable.
- Use a single stock source. If stock is edited by hand in both the ERP and the shop panel, one of them ends up wrong. Write down which system is the truth; the other only reads or imports its changes.
- Let price follow a rule, not each variant. Defining differences such as "size XXL +20 TL" as a price rule instead of typing them into the variant table makes bulk price updates safe.
- Do not create combinations you never sell. Auto-generating every colour times every size produces hundreds of variants that will never be stocked; open only the combinations you actually make or buy.
Bundles and package prices: how does stock go down?
A bundle is sold as one order line but consists of several stock items (for example a "top + bottom set"). There are two methods:
| Method | How it works | When it fits |
|---|---|---|
| Virtual bundle | The bundle has no stock of its own; selling it reduces the components' stock | When components are also sold separately |
| Physical bundle | The bundle is its own stock item with its own barcode and count | When it is pre-packed |
In a virtual bundle, bundle stock is limited by the scarcest component: with 10 tops and 4 bottoms you can sell at most 4 sets. The ERP and the shop must run the same calculation; if one shows "10 sets", you get orders with no stock behind them.
How campaign rules combine with variants
When calculating a price, the campaign engine should answer these questions separately:
- Is the campaign tied to the product, the variant or the category? A rule such as "20% off only in size L" needs variant-level support.
- If several campaigns overlap on one product, which one applies? A priority order or a "lowest price wins" rule should be written down.
- In a package deal ("buy 3, pay for 2"), which line carries the discount? When a single line is refunded, the discount allocation must be calculated too.
- When a campaign ends, does the price revert by itself? A campaign with an end time removes the error of reverting prices by hand.
Defining campaign prices as rules instead of typing them onto the product card also keeps refunds and accounting traceable.
What to watch in ERP sync
- Does a stock change go through instantly or at an interval? Short-interval batch sync is enough for most shops; very fast-selling items may need event-based updates.
- Which stock code does the order carry into the ERP? If the variant code does not match the ERP stock code one-to-one, orders get corrected by hand.
- On returns and cancellations, is stock restored, and to which warehouse?
- If one variant sits in several warehouses, which warehouse does the shop count as sellable stock?
Checklist before you start
| Check | Yes / No |
|---|---|
| Does every variant have a unique stock code and barcode? | ☐ |
| Is one system named as the stock source of truth? | ☐ |
| Have unsold combinations been closed? | ☐ |
| Is the bundle stock method (virtual / physical) written down? | ☐ |
| Is the campaign overlap priority documented? | ☐ |
| Has stock restoration on returns and cancellations been tested? | ☐ |
Frequently Asked Questions
Does the site slow down as the variant count grows?
Pages with many variants load more data, and how your theme and apps handle that data decides the effect. According to platform documentation, some themes and apps may show only part of the data at high variant counts. Measure with real user data first, then simplify.
Does it make sense to make every colour a separate product instead of a variant?
Yes, if colours differ a lot in photos, price or stock handling. If only the colour image changes, keeping them as variants under one product makes catalogue management easier.
Should the ERP or the shop calculate bundle stock?
The "single source of truth" principle applies: if the ERP calculates bundle stock, the shop only reads the result. Calculating separately on both sides risks different answers.
To connect a multi-variant catalogue to your ERP and fix the stock rules, see our e-commerce software service page or the contact form. Our post on 8 common mistakes in ERP-e-commerce integration may also help with stock code matching.
Source: Adding variants (Shopify Help Center)
Cover photo: Syed Hussaini / Unsplash