Trace a jacket size from selection to cart

These are synthetic examples, prepared as CSV files. No WooCommerce installation was run. Every case starts with a fresh cart and the same inventory. For the five pairs below, request one unit. A separate control, shared-limit, requests five. Stock tracking is on and the out-of-stock threshold is zero. The “In stock” badge belongs to the fictional storefront in the article.

Stock records. TRAIL (4100) holds 4 shared units for Ink/S (4101) and Ink/M (4102). Pine/M (4103) has 0 of its own units; Pine/L (4104) has 2 of its own units. Both deny backorders. Clay/M (4105) has 0 of its own units and allows backorders with notice. Pine/S has no variation and no wildcard match.

Existing outcomes
1. Ink/M: submits 4102; added.
2. Pine/M: submits 4103; refused.
3. Pine/L: submits 4103; refused.
4. Pine/S: no matching variation; no cart row.
5. Clay/M → 4105. The supplied observation is backorder and the cart SKU is TRAIL-CLAY-M. The recorded outcome assumes the customer sees the backorder notice. There are no units ready to ship.

Make two decisions
Questions. Which record supplies stock for Ink/M? Which Pine refusal is correct for the selected pair? Where does the Pine/L request first diverge from the selection? Why are Pine/S and Clay/M different from Pine/M?
Correction task. In the independent pine-corrected sample the selected pair and requested quantity stay the same. Predict which submitted ID and cart SKU would agree with Pine/L. Then compare your answer with observations.csv.

Record the trace
Record for each case: selected colour/size ___; requested quantity ___ units; expected ID ___; submitted ID, if known ___; stock owner and units ___; backorder policy ___; cart SKU or refusal ___.
For a staging repeat, also record the installed WooCommerce version, timestamp and locale. Stop at the cart. A unique SKU confirms which item arrived. To establish the submitted ID, use a redacted test request from the maintainer. If that evidence is missing, mark the ID unknown.

Check your answers
Worked answer. Ink/M draws on four units belonging to 4100. Ink/S uses the same pool. Pine/M correctly refuses one because 4103 owns zero and denies backorders. The Pine/L selection corresponds to 4104 with two units, but its supplied record sends 4103. That is the first disagreement the files establish. The form’s initial mapping or the selector’s behaviour after a switch could explain it. Pine/S has no variation to restock. Clay/M can be ordered for later supply.
Answer. The supplied sample shows 4104 and TRAIL-PINE-L for a request of one. In shared-limit the expected ID is 4102 and its owner TRAIL holds four units. A request for five is refused even though one unit was accepted in ink-control.

Jacket stock or variant mapping? Decide what to fix

Selected pair  |  Submitted variation ID  |  Stock record  |  Backorder rule
Pine/L (corrected control)  |  4104  |  Variation: 2 units  |  Denied
Pine/M  |  4103  |  Variation: 0 units  |  Denied
Ink/M  |  4102  |  Parent 4100: 4 shared units  |  Parent denies backorders
Pine/S  |  No match; no wildcard  |  No variation record  |  Not applicable
Clay/M  |  4105  |  Variation: 0 units  |  Allowed with notification

What would you change?
If Pine/M and Pine/L both refuse a unit, which task belongs to the inventory team and which to the storefront developer? Explain what evidence you would need before reopening the option. For Clay/M, who must verify that the stated backorder promise can be met?

Leave Pine/M at zero when the warehouse confirms the sellout. Give the Pine/L mismatch to the person maintaining the selector with the selected pair, submitted ID and cart evidence. For Clay/M, the fulfilment owner checks supply and the promised dispatch terms. If the shop cannot fulfil them, test disabling backorders for this one variation while keeping its physical count at zero.

Use field-notes-en.txt for the direct-selection and size-switch test.
