Running into out of stock variants in bundles is inevitable once your store sells products with multiple sizes, colors, flavors, or scents. A medium black t-shirt sells out faster than small or large, a seasonal candle scent hits zero mid-weekend, or a promotional gift runs dry while the main product still has hundreds of units on the shelf.
What happens next depends on whether that depleted SKU is a required piece of a fixed kit, one size option among many, or an interchangeable choice in a customizable box. This guide explains how Shopify evaluates variant availability across every bundle type, what shoppers see when a single variant sells out, and how to structure offers in Sam Bundles so one empty bin does not stall your bestsellers. For a full overview of bundle formats and margin math, see our product bundles guide.
Why do out-of-stock variants behave differently across Shopify bundle types?
In Shopify’s data model, inventory is never stored on a product title as a whole—it is tracked on each individual ProductVariant (Shopify Liquid variant object). A variant’s available property returns true only when its tracked inventory is greater than zero, its inventory policy is set to continue selling when out of stock, or inventory tracking is turned off.
When you group products into a bundle, Shopify and your bundle widget evaluate availability at two points:
- On the product page (via Shopify’s storefront JSON endpoints): The storefront widget reads which variants exist, which options are currently in stock, and which default variant to pre-select (using Shopify’s first available variant object).
- When adding to the cart and entering checkout (via the Cart Ajax API and Cart Transform): Shopify’s Cart Ajax API verifies that the requested quantity of each variant is available. For bundles that use a parent bundle product, Shopify’s Cart Transform Function API runs a
lineExpandoperation to expand the parent line into the selected component variants so checkout validates and deducts each underlying SKU.
Because different bundle formats assemble component variants in different ways, one sold-out variant has a very different blast radius depending on the offer type:
| Bundle format | What happens when one variant sells out | Does the rest of the offer keep selling? |
|---|---|---|
| Fixed bundle (single-variant components) | The depleted component hits zero and blocks the entire set | No—the complete kit cannot be fulfilled without every required item |
| Fixed bundle (multi-variant components) | Only the sold-out size or color combination is unavailable | Yes—shoppers can buy the fixed bundle in other available sizes or colors |
| Mix and match bundle | The sold-out variant or product cannot be picked in its option slot | Yes—shoppers pick another variant or interchangeable product in that slot |
| Bundle builder (build-a-box) | The sold-out variant is flagged before cart addition | Yes—shoppers swap or remove that item and still hit the tier count |
| Quantity breaks & Buy X, get Y | Shoppers cannot add more units of a variant than remain in stock | Yes—shoppers can mix other in-stock variants or choose a smaller tier |
| In-tier free gift or Complete the bundle | The sold-out gift/add-on variant is marked (Sold out) and disabled | Yes—if a free gift sells out completely, the main quantity break still works |
For the underlying warehouse math on how Shopify divides component stock by required unit quantities, read bundles and inventory on Shopify.
What happens when there is a sold-out item in a fixed bundle?
A sold out item in a fixed bundle is the strictest inventory scenario on Shopify because the merchant—not the shopper—defines the exact products required to make the kit. According to Shopify’s developer documentation on product bundles, fixed bundles group a predetermined set of products together as a single unit.
To see how a stockout affects your storefront, separate fixed bundles into two cases: single-variant kits and multi-variant kits.
Case 1: A required single-variant component hits zero
Suppose you sell a 3-Step Skincare Kit made of three products that have no size or scent options:
- Gentle Cleanser: 85 units in stock
- Vitamin C Serum: 0 units in stock
- Daily Moisturizer: 110 units in stock
Because every order requires 1 cleanser, 1 serum, and 1 moisturizer, the Vitamin C Serum caps the entire bundle at zero. Even though 85 cleansers and 110 moisturizers are sitting in your warehouse, a shopper cannot buy the 3-Step Skincare Kit until you restock the serum (or enable Continue selling when out of stock on the serum variant for a planned backorder).
Case 2: One size or color variant sells out inside a multi-variant fixed bundle
Now suppose you sell a Weekend Run Set in Sam Bundles using the fixed bundle template, which supports up to 30 products, 3 options, and 2,048 variants. The kit pairs a Running Top (Small, Medium, Large) with Running Shorts (Small, Medium, Large).
On the storefront, the Fixed Bundle widget displays option swatches for each included product so the customer can pick their size for the top and their size for the shorts independently. If Running Shorts - Medium sells out while Small and Large remain in stock:
- The entire fixed bundle is not dead.
- A customer who wears
SmallorLargeshorts—or a customer who pairs aMediumtop withLargeshorts—can still purchase the bundle at the bundle price. - Only orders requesting
Running Shorts - Mediumare blocked by Shopify’s cart validation.
Case 3: Bundle quantity exceeds remaining variant stock
Fixed bundles also include a bundle quantity stepper (1, 2, 3…). When a shopper chooses a quantity of 2, Sam Bundles’ Cart Transform function multiplies every component variant in lineExpand by 2. If a selected component variant has only 1 unit left in stock, a 1-bundle order succeeds while a 2-bundle order is stopped by Shopify’s inventory check.
How does variant availability in mix and match and bundle builders work?
When your catalog has uneven stock across flavors, colors, scents, or sizes, variant availability in mix and match and bundle builder offers protects your conversion rate. Instead of locking an offer to one brittle SKU list, both formats let customers assemble the bundle from interchangeable products (fixed bundles vs mix and match vs bundle builder).
Mix & Match: interchangeable products and variants per option slot
In a Sam Bundles mix and match offer, you create numbered Bundle options (such as Option 1: Pick a Bag and Option 2: Pick an Accessory) and assign one or more eligible products to each slot.
On the product page, each slot opens an accordion row with:
- A product dropdown (when you assign multiple products to that slot).
- Variant option dropdowns (such as
ColororSize) for the currently selected product.
If one variant or product in Option 2 runs out of stock, the shopper simply switches the product dropdown or variant selector in that slot to an available option. The widget recalculates the subtotal, bundle discount, and savings badge on the fly, and sends the chosen variant IDs to Cart Transform at checkout. For setup ideas, see our mix and match bundles guide.
Bundle Builder: real-time /variants/{id}.js pre-check before cart addition
In a bundle builder (“build your own box”), shoppers browse a grid of products—optionally filtered by search or grouped by collection—pick a variant on each product card, and add items to a bundle drawer to unlock tiered discounts (for example, Buy at least 3 for 10% off or Buy at least 4 for 15% off).
One common headache with parent-product bundles on Shopify happens when a variant sells out while a shopper is building their box. If a widget blindly submits the parent bundle product to /cart/add.js and a component fails validation, Shopify’s default error message only names the parent bundle product—leaving the customer guessing which of the six items in their box is actually sold out.
Sam Bundles solves this in its Bundle Builder storefront script with a real-time variant availability check:
- When the shopper clicks Add Bundle to cart, the widget checks every selected variant against Shopify’s live
/variants/{id}.jsendpoint before submitting the cart request. - If any chosen variant has
available: false(or if a race condition occurs right as the cart request runs), the widget alerts the shopper with the exact product and variant title (“This product is out of stock: [Product Title] ([Variant Title]). Please remove or replace it to continue.”). - The shopper swaps that single out-of-stock variant in the drawer and completes checkout without losing the rest of their custom box.
What happens when a variant sells out in quantity breaks or Buy X, Get Y?
In quantity breaks and buy X, get Y (BOGO) offers, Sam Bundles does not use a parent bundle product. Instead, the widget adds the actual Shopify product variants to the cart and applies the tier discount through a native Shopify Discount Function.
Here is how variant availability behaves across four common volume discount scenarios.
1. Mixing in-stock sizes and colors when one variant is low
When you apply quantity breaks to a multi-variant product (such as a t-shirt or coffee pods), selecting a multi-unit bar (Duo, Trio) opens per-unit option rows (#1, #2, #3) inside the bar.
First, the Liquid block initializes the widget with Shopify’s selected or first available variant on the product object. If the first variant in your catalog is sold out, the widget automatically starts on the first available variant instead of loading a dead option.
Second, because each unit row has its own variant selector, a variant with only 1 unit left in stock does not block a 3-pack order. A customer can pick that last unit in #1 and pick two other in-stock colors or sizes in #2 and #3 to unlock the 3-pack discount. Read setting up quantity breaks where shoppers mix sizes and colors for the full walkthrough.
2. When a customer requests more units of one variant than you have in stock
What if a customer selects a 3-pack bar, leaves #1, #2, and #3 all set to Navy / Medium, and you only have 2 units of Navy / Medium left?
When the widget posts 3 units of that variant ID to /cart/add.js, Shopify’s Cart Ajax API enforces your variant inventory policy and returns an HTTP 422 response:
- If the variant is already at 0 stock:
"The product '#{item.name}' is already sold out." - If the requested quantity exceeds available stock (or all remaining stock is already in the shopper’s cart):
"You can't add more #{item.name} to the cart."
The widget displays the cart message so the shopper knows to switch one of the unit dropdowns to another size or color, or select the 2-unit Duo bar instead.
3. When a free gift variant inside a quantity break bar sells out
Many merchants attach a free sample, pouch, or tool to a higher tier using Add free gift (unlocking a free gift inside quantity breaks). If that gift runs out of stock during a busy weekend sale, you never want the sold-out gift to break checkout for your main bestseller.
Sam Bundles handles out-of-stock gift variants automatically on the storefront:
- Parallel live stock fetch: Before rendering the quantity breaks widget, the script collects all gift variant IDs across your bars and fetches their live availability from
/variants/{id}.jsin parallel. - Automatic fallback to an available gift variant: If a multi-variant gift’s default variant is sold out, the widget automatically selects the first available variant (
v.available !== false) so the gift remains active. - Disabled
(Sold out)options in the gift dropdown: When a gift has multiple variants (such as color or size), theSelect gift optiondropdown disables any depleted variant and appends(Sold out)to its label. - Graceful
SOLD OUTbadge when the entire gift is gone: If every variant of the gift product is out of stock, the widget replaces theFREEbadge on the gift row with aSOLD OUTbadge, dims the row, unchecks and disables the gift checkbox, and skips adding the gift ID to the cart. Your customer can still click Add to cart on the 3-pack bar and get their main tier discount without an error.
4. When a “Complete the bundle” cross-sell variant sells out
When you attach discounted companion products to a quantity break bar using Complete the bundle (complete the bundle cross-sells), the widget renders a variant dropdown for any companion item with multiple options. Just like gift dropdowns, any variant with available === false is disabled and labeled (Sold out) so shoppers only select in-stock companion variants.
Note that Complete the bundle bars verify at checkout that the complete set (main product plus companion items) is present in the cart before applying that bar’s discount. If a single-variant companion product is completely sold out, remove or swap that companion item in the bar editor so the bar does not attempt to add an unavailable SKU.
How do you configure bundles to prevent out-of-stock variant friction?
Use these five practices in your Shopify admin and Sam Bundles to keep low-stock variants from hurting conversions.
1. Audit variant inventory policies before launching a fixed bundle
Open each component product in your Shopify admin and check every variant’s inventory settings:
- Ensure Track quantity is enabled on physical goods.
- Leave Continue selling when out of stock unchecked unless you purposefully take backorders on that specific variant.
- When creating a fixed bundle, pair products with similar inventory depth. If one accessory has 15 units left and your hero product has 500, don’t lock them into a fixed bundle—use an in-tier free gift or a mix-and-match slot instead. See clearing slow-moving inventory with BOGO and bundles for how to clear uneven stock safely.
2. Turn on “Require variant selection” on sized quantity breaks and BOGO deals
When shoppers buy apparel, footwear, or rings in a multi-pack, leaving the default variant selected on every row can cause accidental rush on whichever size loads first—draining that single variant while other sizes sit untouched.
In Sam Bundles, open each bar in your quantity breaks or buy X, get Y offer and tick Require variant selection. That prompts shoppers to actively confirm their size and color options for #1, #2, and #3 before adding the tier to the cart.
3. Use “Select exceptions” to exclude low-stock products from collection offers
When you apply a quantity breaks or BOGO offer to All products or Selected collections, open Select exceptions under Products in the offer editor. Add any product that is down to its last few broken sizes so you do not advertise a 3-pack or BOGO deal on an item that can barely fill a single-unit order.
4. Schedule end dates or toggle offers off when promotional stock runs low
If you run a limited-edition fixed bundle or a BOGO clearance offer, open the Schedule card in the offer editor (schedule, placement and discount combinations), switch it on, and tick Set end date so the widget stops displaying automatically when the promo window closes. You can also turn any offer off with one click using the status switch in the Performance Overview table on the Sam Bundles dashboard.
5. Translate “SOLD OUT” and “(Sold out)” for multi-language storefronts
If you sell internationally, make sure shoppers in every language understand when a gift or add-on variant is unavailable. Open Translations in the Sam Bundles menu (translate the bundle widget), pick each store language, and add translations for the system strings SOLD OUT (the badge shown on an unavailable gift) and Sold out (the label shown next to disabled variants in dropdowns), then click Save.
Finally, remember that high-demand, low-stock variants and limited-edition bundles frequently attract automated scalper bots and resellers trying to buy out remaining inventory. If you need to keep automated traffic from draining scarce variants or abusing promotional checkout rules, you can pair your store with bot and high-risk traffic blocking on Shopify or enforce server-side checkout fraud prevention rules to stop abusive orders before they lock up your remaining stock.
Frequently asked questions
Does one sold-out size or color mark an entire Shopify bundle as sold out?
Not unless that specific variant is the only one included in a fixed kit. If a bundle lets shoppers choose sizes or colors for each product, only the depleted variant becomes unavailable while the remaining in-stock sizes and colors stay purchasable.
What happens when a required item in a fixed bundle sells out completely?
Because a fixed bundle requires every component product to fulfill a complete set, the item with the lowest available stock caps how many kits can be sold. Once any required single-variant item reaches zero (and is not set to continue selling when out of stock), the fixed bundle cannot be added to the cart.
How does variant availability work in mix and match and bundle builder offers?
In a mix and match or bundle builder widget, shoppers choose from a group or list of interchangeable products and variants. If one flavor, color, or size sells out, shoppers can pick another in-stock option to complete the bundle. In Sam Bundles, the bundle builder also checks live variant availability before adding to the cart and names the exact out-of-stock item so the customer can swap it.
What happens if a free gift or add-on variant sells out inside a quantity break?
In Sam Bundles, the storefront widget checks real-time availability for every gift and Complete the bundle variant before rendering. Sold-out options in the variant dropdown are labeled (Sold out) and disabled. If a free gift product is completely out of stock, the widget displays a SOLD OUT badge, unchecks and disables the gift, and lets the shopper buy the main tier discount without a cart error.
Why does Shopify return a 422 error when adding a bundle with a low-stock variant?
Shopify's Cart Ajax API (/cart/add.js) returns an HTTP 422 status when a shopper tries to add a variant that is already sold out or requests more units than the remaining available stock (including units already sitting in their cart). Using a widget that checks variant availability and disables sold-out options prevents unexpected cart errors.
Sources
Part of our guide: Product bundles →