Bundle & Kit Stock docs / Stock
Stock rules
Exactly how a bundle's number is derived, rounded and written to Shopify.
The rule
For each location: bundle stock = the smallest of (component available ÷ units per bundle), rounded down.
| Component | In stock | Per bundle | Allows |
|---|---|---|---|
| Enamel mug, blue | 14 | 1 | 14 |
| Coffee bag, 250 g | 60 | 2 | 30 |
| Gift box | 14 |
The mug is the limiting part. The app shows it as "Limited by MUG-BLUE (14 left, 1 per bundle)".
When the number is recalculated
- A component's stock changes (sale, return, restock, manual edit, another app).
- A bundle is sold, cancelled or refunded.
- You change a bundle's components.
- The hourly check finds a difference.
How it is written
Kizing writes the bundle's available stock only if Shopify still holds the number it read a moment before. If a sale landed in between, it reads again and retries, so it never overwrites a sale.
Negative stock
If a component is below zero, it allows zero bundles. Bundle stock never goes below zero because of the calculation.