Stock State

Swaps between connected designs based on the selected variant's inventory level (in stock / low / out).

Last updated

Stock State icon

How to use

  1. Connect ⛁ Butter Data to the product's Butter Data CMS field.

  2. Set the Threshold — the inventory cutoff for "low stock."

  3. Toggle and connect the designs you want: ⦿ Above Threshold, ⦿ Below Threshold, and ⦿ Out of Stock.

  4. Decide the No Variant Selected behavior for products that haven't had a variant picked yet.

Stock states

State

When it shows

Typical use

Above Threshold

Inventory is at or above your Threshold, or the variant's inventory is untracked / unlimited.

"In stock"

Below Threshold

Inventory is above zero but under your Threshold.

"Only a few left"

Out of Stock

Inventory is zero. Only applies to variants with tracked, limited inventory — untracked/unlimited variants never reach this state.

"Sold out"

Because the bands depend on real inventory numbers, a product with infinite or untracked inventory will only ever show the Above Threshold design — it can't be Below Threshold or Out of Stock.

When no variant is selected

On a product with variants, the No Variant Selected control decides what happens before the customer picks one:

Setting

Behavior

Show

Displays the product's total inventory, summed across every variant. This keeps showing until all options are chosen — a partial selection (a size but no color yet) still shows the whole-product total, not the total for the matching subset.

Hide (default)

The component stays hidden until a variant is selected.

Questions? Join our Slack community