Storefront

Shopify Out of Stock: Hide Products, Show Sold Out or Keep Selling

What Shopify does when a product sells out, why items show Sold out with stock in admin, how Continue selling works per variant, and when to hide, backorder, preorder or unpublish, with the SEO trade-offs.

On this page

When a Shopify product goes out of stock, Shopify stops selling it by default: once a tracked variant's available quantity reaches zero, customers can't add it to their cart, and themes such as Dawn show a disabled Sold out button. The product stays published, in its collections and in search.

You then choose, per product or variant: keep it visible as sold out, hide it from collections with an Inventory stock is greater than 0 condition, keep selling it as a backorder with Continue selling when out of stock, take preorders through an app, or unlist, unpublish or archive it if it isn't coming back. The deciding question is whether the item will return, and when.

If a product shows Sold out while your admin shows stock, the cause is usually a location setting rather than the quantity; the troubleshooting table below walks through the fixes.

This guide follows Shopify's Help Center and developer documentation as checked on 26 October 2026. Admin labels change often, so expect small differences in your store.

What happens when a product sells out on Shopify?

Shopify's guide to selling out-of-stock products defines an item as out of stock when its inventory is tracked and the level is zero or below. By default, customers can't buy it until you add stock. Across your store, that looks like this:

  • Product page. In Dawn, Shopify's long-standing reference theme, the buy button code shows a disabled Sold out button when the selected variant isn't available, and Unavailable when the chosen options don't exist as a variant. Sold-out option values stay in the variant picker, marked as sold out or unavailable. Other themes may differ, so preview yours.
  • Product cards. Shopify's theme settings guide says Sold out badges are added automatically when inventory reaches 0. In Dawn's product card, the badge appears only when no variant is available, because the Liquid product.available property stays true while any variant can be bought. One sold-out size out of five shows no badge.
  • Collections. The product keeps its place. None of Shopify's collection sort options uses stock.
  • Search. Shopify's search behavior guide says products whose variants are all unavailable appear at the end of search results by default.
  • Untracked products have no quantity to run down, so they never show as out of stock.
  • Shopify POS doesn't apply the stop-selling rule. Staff can sell at zero or below, and POS warns them first.

How do inventory tracking and Continue selling work per variant?

Two settings in the Inventory section of each product or variant decide what happens at zero:

Inventory trackingContinue selling when out of stockAt zero availableTypical use
OnOff (the default)Sold out; can't be added to the cartMost physical stock
OnOnStill buyable; the quantity goes negativeBackorders, quick restocks, items you order after the sale
OffNot applicableNever sells outDigital products, services, made-to-order items, gift cards

To set them:

  1. In your Shopify admin, go to Products and open the product.
  2. If the product has variants, click the variant you want to change.
  3. In the Inventory section, turn on inventory tracking (labelled Inventory tracked or Track quantity, depending on your admin version) and enter the Available quantity for each location.
  4. To let customers buy after stock runs out, select Continue selling when out of stock (in some admin versions you click Sell when out of stock first). Shopify's steps turn tracking on before this option.
  5. Click Save.

Because Shopify's inventory tracking guide applies these per product or variant, one product can mix sold-out sizes with backorder sizes. For many variants at once, Shopify's bulk inventory editing guide describes adding a Continue selling when out of stock column to the bulk editor; our Shopify bulk editor guide covers the editor itself. The product CSV has a column with the same name, and our CSV update checklist helps you edit by file without overwriting variant data.

Why does my Shopify product say sold out when I have stock?

Usually the cause is where the stock sits, not how much there is. Work through these in order:

What you seeLikely causeHow to fix it
Sold out online, but stock shows in adminThe stock is at a location that doesn't fulfill online ordersIn Settings > Locations, open the location and turn on Use inventory at this location to fulfill online orders in the Fulfillment section, or move the stock
A dash in the Available columnThe product isn't active at that location. Transfers, new locations, bulk edits and CSV imports record quantities without activating itOpen the product, click Edit locations in Inventory, select the location, click Done, then Save
Units on hand, but Available is 0They're committed to unfulfilled orders or marked unavailable, such as damaged or safety stockCheck the inventory states; move sellable units back to Available
Only some options say sold outThose variants are at zeroCheck each variant's quantity, not the product total
The button says UnavailableThat option combination doesn't exist as a variantAdd the variant, or leave it if intended
Dropshipping app products show sold outThe app's location may be missing shipping ratesAdd rates for that location in your shipping profile
Sold out only for some B2B buyersIn Dawn, a quantity rule minimum above the stock shows Sold outLower the minimum or add stock
Quantities keep changing backAn app or integration is syncing inventoryCheck that tool's sync settings
Still sold out after all of thisCustomized theme codePreview the product in an unmodified Shopify theme

Shopify's guide to inventory at multiple locations explains the first two: only locations that fulfill online orders count toward the quantity shoppers see, a product can only be sold from locations where it's active, and existing products aren't automatically activated at a new location. Products you create later are stocked there at 0 by default, per the location setup guide. The toggle for online orders is described in Shopify's guide to order fulfillment for locations. Shopify's inventory states guide defines on hand as committed plus unavailable plus available units; committed covers units in unfulfilled orders, draft orders and transfers marked ready to ship. Quantity rules, behind the B2B row, can be set as part of a B2B catalog, per the Liquid variant object.

The opposite problems are simpler. If a product still sells at zero, Continue selling when out of stock is on or tracking is off. If it's still in a collection, the collection is manual, matches any condition, or has no inventory condition. If it's missing from search, check the Out of stock products setting in Search & Discovery. Both are covered below.

What are your options for out-of-stock products?

OptionWhat shoppers seeProduct URLGood for
Keep visible as sold outProduct in collections and search, buy button disabledLive and indexableItems coming back; pages with search traffic
Hide from collectionsProduct missing from collection pages, still in search and reachable by URLLive and indexableLarge catalogs where sold-out items clutter browsing
Push to end of collectionIn-stock products firstLive and indexableSmall catalogs you can sort by hand
Keep selling (backorder)A normal Add to cart buttonLive and indexableRestocks with a date you can keep
PreorderA preorder purchase option from an appLive and indexableLaunches and confirmed incoming stock
UnlistedHidden from collections, search and recommendations, but buyable by URLLive, but noindexLink-only sales
Draft or removed from all channelsA "page not found" error404Pausing a product completely
ArchiveHidden from the storefrontHidden; check what it returnsDiscontinued items you want to keep in admin
DeleteNothing404 unless redirectedItems you will never sell again

Should you keep sold-out products visible?

Leaving a sold-out product live is Shopify's default and usually the lower-risk choice for something that will return. Shoppers arriving from search, ads, emails or bookmarks land on a real page, and the page keeps its search history. The cost is clutter: a collection full of Sold out badges hides what you can actually sell. Give shoppers a next step, such as a back-in-stock signup, similar products or an expected restock date; see the section on capturing demand below.

How do you change the Sold out badge and button text?

  • Style the badge. Go to Online Store, click Edit theme, open the theme settings and select the badges. Shopify's theme settings guide says you can set the position, shape and color of Sale and Sold out badges separately.
  • Change the wording. Go to Online Store, open the menu beside your theme, choose Edit default theme content, find "Sold out" with Filter items, edit it and save. Shopify's theme wording guide uses changing "Sold out" to "Unavailable" as its example. In Dawn, the card badge and the product page button read the same "Sold out" text, so one edit changes both; preview other themes.

How do you hide out-of-stock products from collections?

Shopify's guide to hiding out-of-stock products uses an automated collection condition. With inventory tracking on, for each automated collection:

  1. Go to Products > Collections and open the collection.
  2. In the conditions, set Products must match to all conditions.
  3. Add the condition Inventory stock is greater than 0.
  4. Click Save, then preview the collection on your store.

Sold-out products drop out and return when you receive stock. Before rolling it out:

  • It needs "all conditions". Shopify says the method fails if products can match any condition.
  • One in-stock variant keeps the product in. Shopify's automated collection conditions page says a condition is true if any variant matches, so a shirt with one size left stays listed.
  • Backorder products can drop out too. The condition compares stock quantities, not whether the product can be bought, so expect a product with every variant at zero or below to disappear even with Continue selling when out of stock on. Shopify doesn't spell this out, so preview the collection.
  • Check untracked products. Shopify doesn't say how the condition treats them, so preview collections that mix tracked and untracked items.
  • The catalog page needs its own collection. To filter /collections/all, Shopify says to override it with your own automated collection that uses the same condition.
  • Manual collections aren't affected. They have no conditions, so products you add by hand stay there until you remove them.

Collections and search are separate. With Shopify's Search & Discovery app installed, Search & Discovery > Settings > Out of stock products shows, hides or places last the products that are fully sold out, in both search and predictive search, according to Shopify's Search & Discovery search settings. Rather than hiding them for everyone, you can add the standard Availability filter from Apps > Search & Discovery > Filters > Add filter. Shopify's filters guide lists it among the filters available to all stores.

Can Shopify Flow hide sold-out products automatically?

Shopify Flow is a free app on the Basic, Grow, Advanced and Plus plans. Its template Publish and unpublish products based on inventory level hides out-of-stock products and republishes them once a variant has stock, using the Unpublish product action. That takes the product off a sales channel, not just out of a collection, and Shopify's URL redirect guide says products removed from all sales channels return 404 errors. Check what the URL returns after the workflow runs.

How do you push sold-out products to the end of a collection?

Without an app, moving sold-out items down means sorting by hand:

  1. Go to Products > Collections and open the collection.
  2. In Collection items, open the sort drop-down and select Manually.
  3. Select the sold-out products, open the Move menu and click To the end.
  4. Click Save.

You have to repeat this whenever stock changes, and a manual order replaces automatic sorting such as best selling. Automatic sold-out-last sorting needs an app or custom automation.

Should you turn on Continue selling when out of stock?

Continue selling when out of stock turns a stockout into a backorder. Shopify suggests it for preorders, stock arriving soon, items you sell before reordering supplies, and products whose exact quantities you don't track. Tracking stays on, so the quantity goes negative; Shopify's product CSV guide notes that continuing to sell after 0 displays negative inventory levels.

Plan for these first:

  • Shoppers aren't told. The variant stays available, so in Dawn the button reads Add to cart as usual. Add a backorder note yourself, with a text block on the product template, a metafield your theme shows or an app, and state the dispatch time in your shipping policy.
  • Shipping promises have rules. The FTC's Mail, Internet, or Telephone Order Merchandise Rule requires a reasonable basis for any shipping time you state, or for shipping within 30 days if you state none. If you then can't ship on time, you must offer the customer the choice of agreeing to the delay or cancelling for a prompt refund. In the EU, Your Europe says delivery is due within 30 days unless another time was agreed. This is general information, not legal advice.
  • Locations affect overselling. With more than one active location, inventory is assigned to locations, and Shopify's guide points to location priority as a factor in how overselling plays out. Check your location settings before relying on backorders.
  • Inventory-based collection rules can hide these products once every variant is at zero or below, so preview those collections.

When should you take preorders instead?

A preorder is a purchase option with its own messaging and payment terms, not just a product left on sale at zero. Shopify's pre-orders guide says you need to install a pre-order app to use them. They suit launches and confirmed incoming stock where you can give a date. Our Shopify preorder setup checklist covers the delivery promise, checkout limits and customer messaging.

When should you unlist, unpublish, archive or delete?

For items that won't return, or that you want fully out of sight:

  • Unlisted. Shopify's product details guide says unlisted products stay buyable from their direct URL but leave collection pages, storefront search and recommendations. Shopify also adds noindex and nofollow tags and drops them from your sitemap.
  • Draft, or removed from all sales channels. The URL returns a 404 error, according to Shopify's URL redirect guide.
  • Archived. Hidden from your storefront and the main product list, with its data kept. Unarchiving sets it back to Draft.
  • Deleted. Permanent; it can't be restored.

To change status, open the product, choose Active, Draft or Unlisted in the Status section and click Save. To archive, click More actions > Archive product, as Shopify's guide to adding and updating products describes.

Should you keep or remove out-of-stock pages for SEO?

It depends on whether the product will come back.

Temporarily out of stock: keep the page live. A sold-out page still answers searches for that product, and removing it throws away the links and history it has built. Google Merchant Center's availability guidance says out-of-stock pages can show text such as "sold out" or a disabled buy button, which Shopify themes already do. If your theme uses Shopify's structured_data Liquid filter, each offer carries an availability value; Shopify's example shows OutOfStock. Hiding a product from collections keeps its URL live, though fewer internal links point to it while hidden. Avoid Unlisted for temporary stockouts, because it adds noindex.

Gone for good: remove it, then redirect to a clear replacement. In a November 2022 Search Central office-hours session, Google said deleting the page for a product that won't return is fine from a Search perspective, and that you might keep it up for a while or redirect it for visitors with old links or bookmarks. Search Console's page indexing help says to use a 301 redirect when a page has moved. In Shopify:

  1. Set the product to Draft, or delete it. Shopify says a redirect won't work while the old URL still loads a valid page.
  2. Go to Content > Menus and click View URL redirects.
  3. Click Create URL redirect, enter the old product path in Redirect from and the replacement product or collection in Redirect to.
  4. Click Save redirect.

Point the redirect at the closest match, such as the newer model or the product's collection. In Google Merchant Center, don't mark products you no longer sell as out of stock; Google asks you to remove them from your product data.

SituationRecommended approach
Back within days or weeksKeep it visible as sold out and add a back-in-stock signup
Back on a date you can commit toBackorder or preorder, with the date on the product page
Many sold-out items cluttering collectionsInventory stock condition on automated collections; keep URLs live
Seasonal, back next yearKeep the page live, or hide it from collections only
Discontinued, with a successorDraft or delete, then redirect to the successor
Discontinued, no replacementArchive or delete; redirect to the parent collection if visitors still arrive

How do you capture demand while a product is sold out?

A sold-out page doesn't have to be a dead end:

  • Back-in-stock alerts let shoppers leave an email address and hear when the item returns. Our guide to Shopify back in stock notifications compares the options and setup.
  • Preorders take payment for stock with a confirmed date.
  • Alternatives in your theme's related products section point to items you can ship now.
  • Restock dates for popular items can go in an announcement bar.

ShopOpsy is building NextBatch Preorders, an app for selling preorders in production batches, each with a capacity and a ship-by date, with back-in-stock alerts included; it isn't available to install yet.

Frequently asked questions

Can I hide only the sold-out variants of a product?

Not with collection conditions, which keep a product listed while any variant is in stock. Dawn marks sold-out option values as sold out or unavailable rather than removing them, so hiding them needs theme code or an app. Deleting the variant removes its data too, so avoid that for items you plan to restock.

Can I show a restock date on a sold-out product?

Yes, with a theme edit or an app. Shopify's Liquid variant object includes incoming and next_incoming_date for incoming inventory recorded in Shopify, which a developer can show near the buy button. Otherwise, write the date in the description and keep it current.

What's the difference between a backorder and a preorder?

Google Merchant Center's availability rules use preorder for products not yet released and backorder for existing products that are out of stock but still taking orders; both need an availability date. On Shopify, a backorder is usually a variant with Continue selling when out of stock on, while a preorder is a purchase option set up through a pre-order app.

Sources