In an apparel, footwear, or multi-size Shopify store, a bestseller rarely hits zero total stock all at once. Sizes S, M, and L sell out on Friday, while two units of XXS or XXL sit in the warehouse for another month. Because Shopify treats a product as available for as long as any size has stock above zero [Source: Shopify Help Center, collection layout], that broken size run stays in the first row of your collection page. Shoppers click the card, see their size is sold out, and leave.

If you want a product to move to the bottom of your collections (or hide from the Online Store) as soon as its core sizes sell out, that is what Advanced Out-of-Stock Rules in StockIQ – Out-of-Stock Manager, our app for Shopify, is built to do.

Collection-page size rules vs. product-page size buttons

When merchants search for “hide out-of-stock variants on Shopify”, they are usually trying to solve one of two different jobs:

  1. Moving a product with missing sizes off the top of collection pages (or hiding the product card): So shoppers browsing a collection only see products with a healthy size run in the top rows. This is what StockIQ’s Advanced Out-of-Stock Rules controls.
  2. Size buttons on the product page: Your theme controls the size buttons on the product page. StockIQ adds a Notify me button when a shopper selects an out-of-stock size, so the shopper can ask for an email when it is back.

The four ways to define “out of stock” in StockIQ

By default, Shopify only marks a product as out of stock when every size or variant is at 0. In StockIQ under Settings → Out of Stock Rules, you can switch on Enable Out-of-Stock Rules and choose from four condition types plus a per-size unit threshold:

Out-of-stock rule type in StockIQ When the product counts as out of stock Best fit for
All Variants Are OOS (Default) Every size or variant of the product is at or below your unit threshold Single-option products or accessories where any remaining option is equally sellable
At Least X Variants Are OOS At least the number of sizes you enter (for example, 3 or 4 sizes) are out of stock Catalogs with a uniform size count across products (such as 5-size apparel ranges)
At Least X% of Variants Are OOS At least the percentage of sizes you enter (for example, 50% or 60%) are out of stock Fashion and footwear stores where some styles have 4 sizes (S–XL) and others have 10 shoe sizes
All Variants of a Specific Option Are OOS Every variant of the option name you enter (for example, Size or Color) is out of stock Multi-option products where running out of an entire option group makes the listing unbuyable
Variant Out-of-Stock Quantity Threshold Treats any size with inventory at or below N units (default 0; set to 1 or 2 for safety buffer) as out of stock High-volume stores or multi-channel brands that do not want 1 leftover unit counting as a full size

StockIQ Advanced Out-of-Stock Rules configuration showing size percentage and option rules for broken size runs on Shopify

How to set up broken-size rules step by step in StockIQ

Step 1: Activate Advanced Out-of-Stock Rules

Install StockIQ – Out-of-Stock Manager. The Advanced Out-of-Stock Rules add-on is included on Rhodium, Palladium, and Titanium plans, and available as a paid add-on on Bronze, Silver, Gold, and Platinum plans (See plans and add-ons).

Step 2: Set your size percentage or option rule

Open Settings → Out of Stock Rules and switch on Enable Out-of-Stock Rules. For most apparel and footwear catalogs, select At Least X% of Variants Are OOS and enter 50% (so a 6-size jacket counts as out of stock once 3 sizes are gone, and a 10-size shoe counts as out of stock once 5 sizes are gone). If you want a size with 1 unit left to count as out of stock, set Variant Out-of-Stock Quantity Threshold = 1.

Step 3: Choose whether broken size runs move to the bottom or hide

Your rule in Out of Stock Rules drives both of StockIQ’s collection actions automatically:

  • To move broken size runs to the bottom of collections (most common): On the Collections page, enable the collections you want StockIQ to manage. Under Settings → General, keep Push Out-of-Stock Products Down = On with Push-down Delay = 0 days. Products with broken size runs drop to the bottom of the collection, so shoppers still find the remaining XXS or XXL via size filters or search while full size runs lead page one.
  • To hide broken size runs after a delay: Under Settings → Out of Stock Configuration, switch on Hide Out-of-Stock Products, set your delay (for example, 7 days), and switch on Auto-Republish Restocked Products so the product republishes automatically as soon as your restock delivery brings the size run back above your threshold.

Step 4: Capture restock demand on the missing sizes

When a product with a broken size run stays published at the bottom of a collection, shoppers landing on it from Google or size filters can still request the missing sizes. Under Back-in-Stock Alerts → Configuration, enable the Notify me button on sold-out sizes. Whenever a shopper selects a sold-out size (such as M or L), the Notify me button appears, logs their request in your Most Wanted table by size and Shopify Market, and emails them automatically via StockIQ, Klaviyo, Omnisend, or Mailchimp when that size is restocked.

Running broken-size rules alongside Bestsellers reSort

If you use our collection-sorting app, Bestsellers reSort, to order your collections by 14-day or 30-day revenue, pinned campaign heroes, new arrivals, and tag zones, Bestsellers reSort orders your collections, and StockIQ decides when a product with missing sizes counts as out of stock. For stores where broken size runs are the main problem on collection pages, pair StockIQ’s Advanced Out-of-Stock Rules, Back-in-Stock Alerts, and Inventory Forecasting with your merchandising workflow – see our Solutions for fashion & apparel page for how fashion brands run both apps together.

Frequently Asked Questions

Can Shopify push a product to the bottom of a collection when most sizes are sold out?

Not natively. Shopify’s built-in collection sort orders have no setting to push out-of-stock products down, and Shopify considers a product available while any single size has stock above zero. With StockIQ’s Advanced Out-of-Stock Rules, you can count a product as out of stock as soon as a set number or percentage of sizes (such as 50% of sizes) sell out, and move it to the bottom of your enabled collections automatically.

Does StockIQ hide sold-out size buttons on the product page or move the product in collections?

StockIQ moves the product to the bottom of your enabled collections, or unpublishes it after a delay you set, when it meets your out-of-stock rule. Your theme controls the size buttons on the product page. When a shopper selects an out-of-stock size, StockIQ shows a Notify me button so they can sign up for a back-in-stock email.

What happens when a broken size run is restocked?

On the next scheduled sort – or immediately on Gold, Platinum, Rhodium, Palladium, and Titanium plans (and with the Real-time Updates add-on on Bronze and Silver – See plans and add-ons) – StockIQ sees that the product no longer meets the out-of-stock rule, moves it back into its in-stock collection position (or republishes it if Auto-Republish Restocked Products is on), and sends back-in-stock alerts to shoppers who subscribed for the restocked sizes.

Keep full size runs on row one

A jacket with one XXL left should not hold the first slot of your Bestsellers collection while full size runs sit on page three. StockIQ – Out-of-Stock Manager is a Built for Shopify app for Shopify stores that lets you define out-of-stock by size count, percentage of sizes, or option, move broken size runs to the bottom automatically, and collect Notify me requests on every sold-out size. See plans and add-ons, or start your 7-day free trial on the Shopify App Store.