Out of stock or discontinued? What to do with product pages so Google and ChatGPT keep up
If a product is only temporarily sold out, keep the page live, say "out of stock" on it, and set the same status in your structured data and product feeds. Don't delete it. If it's gone for good, remove it from your feeds and either 301-redirect the page to a clear replacement or return a 404 or 410. What matters most is that the page, the markup and the feed all tell the same story.

- Availability is a ranking factor in ChatGPT's merchant list: OpenAI says that when several stores sell the same product, merchants "are ranked based on factors like availability, price, quality, and whether they are the maker or primary seller".
- Don't delete temporary stock-outs from Google: Google Merchant Center warns that "adding an offer back after deletion will take a significant amount of time before it can show again". Set the item to
out_of_stockinstead. - Do delete discontinued products from the feed: for permanently discontinued products, Google says to delete them from your data source "rather than setting them to out of stock" to avoid account disapprovals.
- All three places must match: Google requires the same availability on your landing page, structured data and product feed, and says a mismatch in any of them "will trigger a product disapproval".
- 4xx removes the page: when a URL returns a 404 or 410, Google removes it from the index if it was indexed and gradually crawls it less often.
- Soft 404s get excluded: a page that says "not found" but returns a 200 status is treated as a soft 404, and Google says such pages "are excluded from Search".
Why stock status matters more in AI shopping
A classic search result sends a shopper to your page, and they find out there that the item is sold out. An AI shopping assistant makes that call before the shopper ever clicks.
OpenAI's help page on shopping in ChatGPT says it builds product results from "structured metadata from first-party and third-party providers", and that when several merchants sell a product, availability is one of the factors used to rank them. It also admits that "when merchants update their pricing or shipping terms, there may be some delay" before ChatGPT reflects it.
Google says something similar for its AI features: its guidance for AI Overviews and AI Mode includes keeping your Merchant Center information up to date and making sure your structured data matches the visible text on the page.
So stock status isn't a detail for the product page alone. It decides whether an assistant recommends you, recommends someone else, or sends a shopper to a page where the "Buy" button doesn't work. Getting it wrong costs you twice: a lost sale today and a shopper who trusts the assistant's next answer more than your store.
First, decide which case you're in
Most stores treat every unavailable product the same way: leave the page as it is, or delete it. Google's rules actually split them into a few cases, and each one needs a different setup.
| Situation | Product page | Structured data (availability) |
Google Merchant Center feed | ChatGPT product feed |
|---|---|---|---|---|
| Sold out for now, not taking orders | Keep it live (200). Say "Out of stock", grey out the buy button | OutOfStock |
out_of_stock. Don't delete the item |
out_of_stock |
| Sold out, but taking orders to ship later | Keep it live. Show the expected shipping date | BackOrder |
backorder plus availability_date |
backorder |
| Not released yet, taking orders | Keep it live. Show the release or shipping date | PreOrder |
preorder plus availability_date |
pre_order |
| Discontinued, with a clear replacement | 301 redirect to the replacement | n/a (page redirects) | Delete the item | Remove the item |
| Discontinued, but the page still helps people (manuals, specs, spare parts) | Keep it live. Say clearly it's discontinued and link to alternatives | Discontinued |
Delete the item | Remove the item |
| Discontinued, nothing useful left | Return 404 or 410 | n/a | Delete the item | Remove the item |
The schema.org values come from Google's merchant listing structured data documentation, which lists InStock, OutOfStock, BackOrder, PreOrder, Discontinued, SoldOut and a few more, and says not to specify more than one. The feed values come from Google's availability attribute and OpenAI's products feed reference.
Temporarily out of stock: keep the page and say so
This is the most common case, and the one stores most often get wrong by deleting or hiding the product.
Keep the page live. It still ranks, still has your reviews, and will be useful again next week. Google's soft 404 guidance is about pages that are empty or show an error. A complete product page that says "out of stock" isn't one of those.
Show the status on the page itself. Google Merchant Center asks for clear text such as "sold out" or "item not available", or a disabled or greyed-out buy button. For a product with variants, you can disable just the unavailable sizes or colours.
Change the markup and the feed at the same time. Set availability to OutOfStock in your Product markup and out_of_stock in your Google and ChatGPT feeds. If Google finds a product out of stock on your page or at checkout while the feed still says in_stock, it disapproves the product.
Don't delete it from Merchant Center. Google is explicit that deleted offers take "a significant amount of time" to show again once you add them back. If you need to hide a product for a while, Google points to the pause attribute instead.
If you'll restock and want orders now, use backorder. Google reserves preorder for new products that haven't been released yet. For an existing product that's out of stock and will be back, with orders still accepted, the right value is backorder, and you must show the expected shipping date on the page and send it as availability_date.
Discontinued for good: redirect, keep or remove
Once a product will never come back, the feed side is simple: take it out. Google says to delete permanently discontinued products from your data source instead of leaving them as out of stock. OpenAI's feed spec says the same thing differently: availability dates don't schedule anything, so update or remove items yourself when they sell out.
The page is where you have to choose.
There's a direct replacement. A new model, a new version or the same product under a new code. Use a 301 redirect to it. Google's soft 404 guidance says to use a 301 when the page "has moved or has a clear replacement on your site", and its redirects documentation recommends permanent server-side redirects whenever possible.
There's no replacement, but people still look for it. Think product manuals, compatible accessories, spare parts or support details. Keep the page, state clearly at the top that it's discontinued, set availability to Discontinued and link to the closest alternatives. This is a judgement call: only keep it if the page is genuinely useful to someone landing on it.
There's nothing left worth keeping. Return a 404 or 410. Google's soft 404 guidance says to do this when you've removed the page "and there's no replacement page on your site with similar content". According to Google's HTTP status code documentation, both codes are handled the same way: the URL is dropped from the index if it was indexed, and crawling slows down over time. Make your 404 page helpful, with your navigation and links to popular categories, but keep the 404 status code.
Five mistakes that send shoppers to dead ends
| Mistake | What goes wrong | Fix |
|---|---|---|
| Deleting products from the feed every time they sell out | Google says re-added offers take a long time to show again | Set out_of_stock and keep the item |
Page says "sold out", markup still says InStock |
Google requires the page, markup and feed to match and disapproves mismatches | Update all three from the same stock data |
| Redirecting every discontinued product to the home page | Google only recommends a 301 when there's a clear replacement | Redirect to a real replacement, or return 404/410 |
| "Product not available" page with almost no content and a 200 status | Google can treat it as a soft 404, and those pages are excluded from Search | Keep a full page with alternatives, or return a real 404 |
| Stock status added by JavaScript after the page loads | Google says JavaScript-generated Product markup can make Shopping crawls less frequent and less reliable for fast-changing data like availability and price | Put the markup in the initial HTML |
The last one matters beyond Google. Vercel's analysis of AI crawler traffic found that OpenAI's, Anthropic's, Meta's, ByteDance's and Perplexity's crawlers did not render JavaScript, so a status that only appears after a script runs may never reach them.
How to keep it in sync
You don't need to update three places by hand every time a product sells out. Most of the work is making sure everything reads from the same stock number.
- Check your platform does it. Many e-commerce platforms switch the page status and the buy button automatically when stock hits zero. Check that the theme's Product markup changes too, not just the visible label.
- Connect your feeds to the same data. A Merchant Center feed that's uploaded by hand once a month will drift. Use a scheduled feed or your platform's integration. Google also offers automatic item updates, which use your landing page to correct availability and avoid disapprovals.
- For ChatGPT, know where your data comes from. OpenAI says Shopify merchants' product data already reaches ChatGPT through Shopify Catalog. Other stores can apply for a direct product feed, where
availabilityis required for every row andunknownmust be used explicitly if you don't know. - Write down a rule for discontinued products. Decide in advance: replacement means 301, useful page means keep and mark
Discontinued, nothing left means 404 or 410. Then whoever removes products follows the same rule. - Tell search engines when pages change. An updated
lastmoddate in your sitemap, or an IndexNow ping, helps updates get picked up faster. Our guide to sitemap lastmod and IndexNow covers both.
Stock status is one piece of the product data assistants read. Clear product descriptions and visible shipping and return policies are the others.
What this won't do
Getting availability right won't guarantee your products appear in an AI answer. Neither Google nor OpenAI promises that. What it does is remove a reason to skip you, and stop assistants from sending shoppers to a product they can't buy.
Check your site
Want to know whether AI tools can read your product pages at all? The free Web2Agents AI check scores your homepage out of 30, tests 12 AI bots against your robots.txt and checks your robots.txt, sitemap.xml and llms.txt, with results on screen. The €19 AI-Ready Kit runs all 36 checks on up to 25 pages, including product pages and their structured data, and ranks the fixes by impact.
FAQ
Should I delete out-of-stock product pages?
No, not if the product is coming back. Keep the page live, show that it's out of stock, and set OutOfStock in your structured data and out_of_stock in your feeds. Google warns that deleted offers take a significant amount of time to show again once you add them back.
What should I do with a discontinued product page?
Remove the product from your Merchant Center and other product feeds. For the page, use a 301 redirect if there's a clear replacement, keep it with Discontinued availability if it still helps people (manuals, spare parts), or return a 404 or 410 if nothing useful is left.
Is it OK to redirect discontinued products to my home page?
It's not what Google recommends. Google's guidance is to use a 301 when a page has moved or has a clear replacement, and a 404 or 410 when there's no replacement with similar content.
What's the difference between backorder and preorder?
Preorder is for new products that haven't been released yet. Backorder is for existing products that are out of stock but that you'll ship later and are still taking orders for. Both need an expected date shown on the page and sent in the feed.
Does ChatGPT know when my product is out of stock?
It depends on the data it receives. OpenAI says merchants are ranked partly on availability and that updates to merchant information can take time to show. Keeping your page, markup and any product feed up to date gives it the best chance of being accurate.
Sources
- Shopping with ChatGPT Search, OpenAI Help Center
- Products feed reference, OpenAI Developers
- Availability [availability], Google Merchant Center Help
- Merchant listing (Product, Offer) structured data, Google Search Central
- Troubleshoot Google Search crawling errors (soft 404 errors), Google Search Central
- How HTTP status codes affect Google's crawlers, Google Search Central
- Redirects and Google Search, Google Search Central
- AI features and your website, Google Search Central
- The rise of the AI crawler, Vercel


















