Sub topic 9
Handling Out-of-Stock, Changed, and Discontinued Products
Assume you know basic HTML, JSON, product catalog editing, and how search crawlers retrieve pages. This chapter focuses on lifecycle decisions: what to show when a product cannot currently be bought, has changed, or will never return.
Choose a state before changing the page
“Out of stock” and “discontinued” are different states:
- Out of stock means the product still exists and may become available again.
- Temporarily unavailable means availability is uncertain, but the product record remains active.
- Changed product means important details such as price, name, size, ingredients, or specifications have changed.
- Discontinued means the product is no longer sold and will not return.
Record the state in the product system. Do not infer it from a manually edited page title. The state should control the visible message, structured data, product feed, sitemap behavior, and internal links.
| Product state | Page action | Offer markup | Redirect |
|---|---|---|---|
| Temporarily out of stock | Keep page and show expected availability if known | `OutOfStock` | No |
| Permanently discontinued with replacement | Explain change and link to replacement | Usually omit old offer | Often redirect |
| Discontinued without replacement | Explain retirement and suggest related products | Remove offer | Usually keep a useful page or return `410` |
Keep useful pages useful
A temporary stock change usually does not justify deleting a product URL. The page may have search visibility, links, reviews, and useful specifications. Keep the URL stable, show the current stock state, and offer an email alert or alternative product.
For a discontinued product, choose based on user intent:
- Redirect to a direct replacement when the replacement satisfies the same need.
- Keep a retirement page when historical information, manuals, compatibility details, or support content remains useful.
- Return
410 Gonewhen the page has no continuing value and no suitable replacement exists. - Avoid redirecting every retired product to a generic category page. That creates a poor match for users and crawlers.
A redirect must not silently turn an old product into a different product. Explain the relationship on the destination when the replacement is similar but not identical.
Update structured data and visible content together
Search engines compare structured data with the rendered page. If the page says “sold out” but JSON-LD says InStock, both users and crawlers receive conflicting facts.
Generate both representations from the same product record:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Trail Runner 2",
"sku": "TR2-BLK-42",
"offers": {
"@type": "Offer",
"price": "89.00",
"priceCurrency": "EUR",
"availability": "https://schema.org/OutOfStock"
}
}When a product is permanently retired, remove its old Offer rather than leaving an old price and OutOfStock status indefinitely. Keep the product name and identifying information only if the page still provides useful historical or support content.
Coordinate feeds, sitemaps, and caches
Update the product feed when price, stock, identifiers, or lifecycle state changes. Merchant platforms may continue displaying an old offer if the feed still contains it.
Change lastmod when the page’s meaningful lifecycle content changes. Do not update it on every crawl or automated deployment. After publishing, purge the relevant CDN or cache entry, or use a short revalidation period. Verify the public response, not only the origin server.
Assign ownership and test transitions
A catalog owner should decide lifecycle state. A content or SEO owner should review redirects and retained pages. Automated checks should compare:
- visible price with JSON-LD price;
- visible stock message with
availability; - active products with feed entries;
- retired products with their redirect or
410response; - sitemap
lastmodwith the recorded meaningful change time.
Exercise
A product is temporarily unavailable, but the page has strong search traffic and no confirmed restock date. Should you delete it, redirect it, or keep it?
Show answer
Keep the URL, show that it is out of stock, omit an invented restock date, and offer an alert or relevant alternatives. Keep its structured data and product feed consistent with that state.