Skip to content
Technical SEO 9 min read By Lewis Jones Editorial policy

WooCommerce Out of Stock Products: SEO Fixes

What WooCommerce does with a sold-out product, from its code and four live stores, why the schema often hides it, and when to keep or redirect the page.

Part of Technical SEO Guide: Crawl, Index, Speed

In short

  • WooCommerce keeps a sold-out product's page live, indexable and in the sitemap, which is right for anything coming back
  • On four live stores only 10 of 29 sold-out pages said OutOfStock in their schema; the rest said InStock, had no offer, or had no Product block at all
  • WooCommerce only writes availability when the product has a price, and always treats external products as in stock
  • The "Hide out of stock items from the catalog" setting takes products out of lists, not out of search, and it switches off WooCommerce's own back-in-stock sign-ups
  • Keep what is coming back, redirect what has a replacement, and never redirect a sold-out product to the home page

When a WooCommerce product sells out, its page stays exactly where it was. It still answers 200, it stays in the sitemap, and nothing adds a noindex. For a product that is coming back that is the right default, because the page keeps its rankings, links and reviews. The problems are elsewhere: the schema often does not tell Google the product is sold out, the one setting that hides sold-out products only hides them from shoppers, and products that are never coming back sit in search for months.

This post shows what four live stores served for their sold-out products on 19 November 2026, what WooCommerce's own code (version 11.3, the current release) does with them, the keep, redirect or remove decision, and how to find every sold-out product still in search. For the rest of a store audit, see the WooCommerce SEO audit.

What WooCommerce does with a sold-out product

We took four stores from WooCommerce's own showcase, asked each store's public product API for its sold-out products, then opened those pages and read their sitemaps.

The pages were all live and indexable. What varied was whether their markup admitted the product was sold out.

Every sold-out page we opened answered 200 with no noindex, and every sold-out product the API listed was in the store's sitemap. None of the four had switched on WooCommerce's option to hide sold-out products. That much is WooCommerce working as designed. A product with no stock left is still a product, and its page is still the best answer to a search for it.

The difference between the stores was in the structured data. Only 10 of the 29 pages we opened said OutOfStock in their Product schema.

Why the schema often does not say sold out

WooCommerce prints its own Product block in JSON-LD on each product page. When the product is out of stock, the offer in that block says https://schema.org/OutOfStock, or BackOrder when the store takes backorders. That is what lets Google show "Out of stock" in a result instead of sending a shopper to a page they cannot buy from. On these stores it went wrong in three different ways.

Every one of the 19 pages outside the first band looks like an ordinary product to anything reading the markup.
  • It said InStock (5 pages). All five were external products, the type that links to another site to buy. WooCommerce 11.3 always stores an external product as in stock, whatever value it is given, so the schema says InStock even when the store's own product list calls it sold out. If an affiliate product is gone, unpublish it or redirect it; there is no sold-out state for that type.
  • A Product with no offer (5 pages). These products had no price. WooCommerce only adds the offer, and the availability inside it, when the product has a price, so a sold-out product whose price was cleared loses its availability with it. Leave the last price on a product while it is sold out.
  • No Product block at all (9 pages). On two stores the product template printed no Product schema. WooCommerce outputs its block from the standard single product template, so a theme or page builder that replaces that template can drop it. Add Product schema back from the theme or your SEO plugin, and check one product in Google's Rich Results Test afterwards. The WooCommerce product schema post covers what the block should contain.

A variable product only counts as out of stock when every variation is. One size sold out among several in stock is a normal shop, and the schema shows each variation's own availability.

Keep, redirect or let it go

The product page holds whatever the product has earned, so the only real question is whether it is coming back.

Only the first branch keeps the page, and it is the right one far more often than stores assume.
  • Coming back. Keep it published and indexable, with its price, so the schema says OutOfStock. Say on the page when it is expected if you know. WooCommerce 11.3 can take back-in-stock sign-ups itself (Customer stock notifications, under WooCommerce, then Settings, then Products, once the feature is switched on), and several plugins do the same.
  • Replaced by a new product. Move it to the bin and add a 301 redirect from the old product URL to the replacement. WordPress has no redirect screen of its own, so use a redirect plugin or the redirect manager in your SEO plugin.
  • Gone, with nothing close. Redirect it to its category if shoppers still want that type of thing, or let it return 404 or 410. All three stores we tested returned 404 for a product URL that did not exist. Check the old address afterwards: if another product's slug starts with the removed one, WordPress redirects there instead, as WooCommerce 404 page shows.

Do not redirect sold-out products to the home page. Google treats a redirect to an unrelated page much like a missing page, a soft 404, so none of the old page's value carries over, and the shopper lands somewhere that does not mention the product. Plugins that redirect sold-out products automatically sometimes default to the home page, so check the target before you switch one on.

The "Hide out of stock items" setting

Most stores want sold-out products out of shoppers' way. WooCommerce's answer is one checkbox, and it does less than its name suggests.

The setting filters lists of products. The page itself, and everything Google reads from it, stays the same.

In WooCommerce 11.3 the option only changes the queries that build lists: the shop and category pages, product search, related products and the product widgets. The product page still answers 200 with no noindex, the sitemap still lists it (WordPress's own sitemap and the SEO plugins build theirs separately), and its schema is unchanged. So the product stays in Google while losing every internal link that pointed at it from a category page.

Two more things to know before ticking it. It switches off WooCommerce's own back-in-stock sign-ups, and the settings screen says so. And it is all or nothing: every sold-out product disappears from lists, including the ones coming back next week.

A better default for most stores is to keep sold-out products in their categories but show them after the in-stock ones. WooCommerce has no setting for that, but a plugin or a few lines of code that sort the catalogue by stock status will do it. Shoppers see what they can buy first, and the sold-out pages keep their internal links. If you want products that are gone for good out of the sitemap too, SEOPress documents a filter for it; with other SEO plugins, removing the product (with a redirect) is the cleaner fix.

The Shopify out of stock products post covers the same decisions on Shopify, where sold-out handling works differently.

Opening product pages one by one does not scale past a small catalogue. Crawl Cove reads the Product schema each page already prints, so it finds them from outside, without access to the store's admin:

The check can only see what the schema says, which is one more reason to fix the schema first.
  • A product page counts when it answers 200, has no noindex, is not canonicalised to another URL, and every offer in the page's own Product schema, including every variation, says OutOfStock, SoldOut or Discontinued.
  • The pages are reported together as products nobody can buy, still in search, graded low, because many of them are right to keep.
  • It reads the schema, so it cannot see a sold-out product whose schema says nothing or InStock: 19 of the 29 pages above. Fix those first and the next crawl lists them.
  • When a page's schema also describes related products, it judges only the Product that names the page, by its @id, url or offer URL. WooCommerce sets that @id to the product's own address, so in-stock related products no longer hide a sold-out page (version 1.3.19 onwards).

Work down the list with the decision above: keep what is coming back, redirect what has a replacement, and let the rest go. The WooCommerce sitemap post shows how to check the sitemap side of the same products, and the structured data checker page covers the app's other schema checks.

The Free plan crawls up to 1,000 URLs a crawl, enough for a small store's full catalogue. Download Crawl Cove and start from the store's home page.

Frequently asked questions

Do out of stock products hurt SEO on WooCommerce?
Not by themselves. A sold-out page that is coming back is worth keeping, and Google can show its availability when the Product schema says OutOfStock. They hurt when they pile up: a discontinued range left live for months keeps collecting searches nobody can buy from.
Does hiding out of stock products in WooCommerce remove them from Google?
No. The setting under WooCommerce, then Settings, then Products, then Inventory removes sold-out products from shop and category pages, product search, related products and widgets. The product URL still answers 200, gets no noindex and stays in the sitemap, so Google keeps it.
Why does my out of stock WooCommerce product show InStock in its schema?
Check the product type. WooCommerce always stores an external (affiliate) product as in stock, so its schema says InStock whatever the stock column showed before. If a simple product shows InStock, look for a plugin or theme that prints its own Product schema.
Why is availability missing from my WooCommerce product schema?
Either the product has no price, or the theme prints no Product block. WooCommerce only adds the offer, which carries the availability, when the product has a price. On two of the four stores we checked, the product template printed no Product schema at all.
Should I redirect out of stock products in WooCommerce?
Only when they are not coming back. Trash the product and add a 301 to its replacement, or to its category if there is no replacement, using a redirect plugin or your SEO plugin's redirect manager. Do not redirect to the home page, which Google can treat as a soft 404.
How do I find out of stock products that are still indexed?
Crawl the store and read the Product schema on every product page. A page that answers 200, has no noindex, and lists every offer as OutOfStock, SoldOut or Discontinued is a product nobody can buy that is still in search. Crawl Cove reports those as one finding with the list of pages.

Audit your site the easy way

Crawl Cove finds these issues on your machine. Try the Structured Data Checker or see every feature.

Download free