Most variant hiding works on a binary. Above zero, the variant is visible. At zero, it disappears. Fine for the average case, but it misses two situations where waiting for zero hurts you.
The first is the last-one race. A variant has one unit left, three customers add it to cart within the same minute, two of them get to checkout and find it gone. They blame the store, not the maths.
The second is reserved stock. You're holding 5 units back for a wholesale buyer or a planned promo. The site still says "in stock" because the system count is above zero, and you keep getting orders you have to refund.
For both, you don't want to wait for zero. You want the variant out of view while there's still a buffer. That's what inventory-threshold hiding is for.
In Camouflage, the rule reads roughly: hide this variant when inventory drops below N. So instead of "hide at 0", you set "hide at 5", or 10, or whatever your buffer is.
The setup, in the dashboard:
N unitsThe variant stays visible while there's headroom and quietly disappears once you cross the threshold. Customers arriving after that don't see it at all — no in-stock tease followed by a checkout failure.
The right threshold depends on how fast the variant sells and how much buffer you want to hold.
For something that sells a few units a day, 3 to 5 is usually enough to dodge the last-one race without pulling the variant from the page weeks before it's actually gone. For a slower variant, 1 or 2 is fine. For a variant where you're reserving stock, set the threshold equal to the reserve — if you're holding 8 for a buyer, set it to 8 and the rest is gated.
You can adjust the number after watching it run for a couple of weeks. There's no perfect threshold; there's a workable one.
The same rule is useful around a pre-order window. You can keep the threshold equal to the incoming batch size so the variant stays hidden until the batch arrives and inventory ticks down. Or do the inverse — keep it visible during the pre-order, with a separate pre-order app handling the cart side. Camouflage doesn't run the pre-order itself, it just gives you control over when the variant is shown.
Two cases worth flagging.
If you sell handmade and you actually want every last unit visible, threshold hiding leaves stock on the shelf. Use plain sold-out hiding instead, or strike-through.
If your stock count isn't reliable — marketplace integration that lags, warehouse that double-counts — the rule will fire at the wrong moments and you'll annoy customers in a different way. Fix the sync before you set the rule.
Raj founded WeThinkPro in 2021 in Ghaziabad, India. He writes here once a month about Shopify development, the app store, and the merchant problems that keep him up at night.
You can stack two rules so the variant moves through visible → struck-through → gone as stock drops:
Stock starts at normal visibility, hits the strike-through at 20 (signal: this is going), and disappears at 5 so the last few units stay free for customer-service edge cases. Pairs naturally with a back-in-stock email widget on the strike-through state, where shoppers are most motivated to sign up.