A customer asks an AI assistant for a toy, the assistant recommends your shop, the customer clicks through, and the toy is not there. It sold out last week, the page still says it is in stock, and the customer leaves angry. Or the opposite happens: the toy is back in stock, the page still says it is gone, and the customer buys from a competitor instead. Both failures come from the same cause. The stock information an assistant read did not match the stock on your shelves.

This guide is about keeping those two facts in agreement: what your pages say about stock, and what is actually available. It matters more for AI search than for ordinary search, because an assistant that recommends a product a customer cannot buy has failed the customer, and it learns not to recommend that product again. Google says its product results can show price, availability, review ratings, and shipping information right in search results, which means the availability your pages state is visible before the customer ever reaches your site. Getting it right is a trust job, not a technical trick.

Say what is true, in words and in code

Stock has two faces on a product page: the words a customer reads, and the structured data a system reads. Both must say the same thing, at the same time. Google Merchant Center help says the values in your product data should always match the information on your website, and that you should show a consistent availability across the landing page, structured data, checkout page, and your data source, because a mismatch in one of these will trigger a product disapproval. That rule is written for Merchant Center feeds, and the same logic applies to the pages an assistant reads: if the words say one thing and the code says another, a system has to guess, and it will guess wrong as often as it guesses right.

The values to use come from schema.org, and Google maps them to its own feed values. The mapping Google publishes is: in stock covers InStock, LimitedAvailability, and OnlineOnly; out of stock covers Discontinued, InStoreOnly, OutOfStock, and SoldOut; preorder covers PreOrder and PreSale; backorder covers BackOrder. Use the value that matches reality. A product you are not accepting orders for is out of stock, not on preorder. A product you are accepting orders for, with delivery at a later date, is on backorder, not in stock. Google says the preorder value should only be used for new products that have not been released yet, and that existing products that are out of stock and will be back in stock at a later date, and that you are accepting orders for, should use backorder instead. Getting that distinction right is part of saying what is true.

On the visible page, say it plainly. Google Merchant Center help says that for out of stock products, you can display clear text such as "sold out" or "item not available", or use a disabled buy button, and that if a page features multiple variants, you can disable specific options in the selection grid to indicate they are unavailable. Do the same for each variant, because stock is often per variant, not per product. A shoe in one size can be in stock while the same shoe in another size is gone, and Google says the availability of a product variant in your data source should match the availability of the same variant on its landing page. A customer who selects a size and only then learns it is gone has been misled, even if the product page as a whole says the right thing.

Keep the three stock states separate

There are three different situations, and each one needs different handling. Mixing them up is the most common mistake in this whole topic.

The first is temporarily out of stock. The product will be back, and you are not accepting orders for it in the meantime. Set the availability to out of stock, show clear text on the page, and disable the buy button. Google says that if your product is not in stock and you are temporarily not accepting orders for it, set availability to out of stock. Do not delete the product. Google warns that if you need to temporarily stop accepting orders or hide a product, you should not delete the item, because adding an offer back after deletion will take a significant amount of time before it can show again. Instead, use the pause attribute if you want to stop it showing, or simply leave the page up with the correct out of stock status.

The second is on backorder or preorder, where you are accepting orders for a product that is not available right now. Use backorder for an existing product that will be back in stock, and preorder only for a new product that has not been released yet. In both cases Google requires an availability date, and says that date should be visible on the landing page. Give the date you can stand behind, and update it when it changes. A date that passes with no delivery teaches a customer, and a system, that your dates cannot be trusted.

The third is discontinued. The product is gone for good, and it is not coming back. Do not leave it marked out of stock forever. Google says not to set the availability attribute to out of stock for products you are no longer selling, and to remove discontinued products from your product data. For a permanently discontinued product, delete it from your data source rather than setting it to out of stock, to avoid account disapprovals. On your own site, say so plainly on the page, or remove the page and point customers to the replacement. A page that says out of stock for a product that will never return is a page that wastes every visitor time, and every system that reads it learns to distrust the next out of stock label too.

Update stock in the same change, everywhere

Stock changes fast, and the fix is process, not effort. When stock changes, change it in the same pass everywhere it appears: the product page, the structured data, the checkout, and the product feed. Google says the availability and prices of your products can change frequently, and that you should provide the most up-to-date data. A change made on the page but not in the feed leaves the two disagreeing, and a system that reads the feed will recommend a product the page says is gone, or ignore a product the page says is back.

Build the update into the stock routine itself. When a delivery arrives, or a product sells out, the person who updates the shelf should also trigger the update to the page and the feed, or tell the person who does. If your platform updates the page automatically when stock changes, check that it also updates the structured data, because a page that says sold out in words while its code still says in stock is the worst of both worlds: the customer sees the truth, and the system reads a lie.

Check the agreement regularly, as working advice rather than a vendor rule. Pick a handful of products, including one that recently sold out and one that recently came back, and compare what the page says, what the code says, and what the feed says. If they disagree, fix the process that let them disagree, not just the one product. A single mismatch is a mistake. A pattern of mismatches is a broken routine.

Tell the customer what happens next

An out of stock page does not have to be a dead end. A customer who finds the product they wanted is gone will leave, unless the page gives them a reason to stay. Say when the product is expected back, if you know, and say it in words and in the availability date. Offer the closest alternative, on the same facts, in the same order, so the customer can compare honestly. Offer to tell the customer when it is back, if that is a service you genuinely provide, and say how you will tell them.

Do not do the things that look helpful and are not. Do not keep the buy button live for a product you cannot supply, hoping the customer will accept a wait they did not agree to. Do not show an in stock label on a product page while the checkout says it is unavailable. Do not use the out of stock label to hide a product you simply do not want to show: Google says not to set availability to out of stock when you do not want your product to show, and to use the excluded destination or pause attribute instead. Each of these tricks trades a short-term sale for long-term trust, and an assistant that recommends a product a customer cannot buy will stop recommending it.

A toy shop that stopped recommending what it could not sell

Picture a small toy shop with a popular building set. The set sells out before a holiday, the page still says it is in stock, and the structured data still says InStock. An assistant recommends the shop to a customer looking for that set. The customer clicks through, finds it gone, and buys from a competitor. The next time the same question is asked, the assistant recommends the competitor first, because the competitor page said sold out when it was sold out, and in stock when it was back.

The owner fixes the routine, not just the page. When the set sells out, the page is changed in the same pass: the words say sold out, the buy button is disabled, and the structured data is changed to OutOfStock. The feed is updated at the same time, so the page, the code, and the feed agree. The page also names the closest alternative set, with the same facts, and offers to tell the customer when the popular set is back.

When the delivery arrives, the same routine runs in reverse: the words change, the button comes back, the code changes to InStock, and the feed is updated in the same pass. A second product, an old puzzle that will never be stocked again, is handled differently: it is removed from the product data, and its page says plainly that it has been discontinued, with a link to the replacement.

The shop did not gain a new product. It gained pages that tell the truth about stock, in words and in code, at the same time. The next time a buyer asks for that building set, the assistant recommends a shop whose stock information it can trust, because the shop proved it, twice: once when the set was gone, and once when it came back.

What this guide does not do

This guide covers handling out of stock products for AI search: saying what is true in words and in code, keeping temporarily out of stock, backorder, preorder, and discontinued separate, updating stock everywhere in the same change, and telling the customer what happens next. It does not cover marking up prices and availability in full detail, or stopping AI from recommending discontinued products, which have their own guides. It also does not cover the checkout step that turns a recommendation into a sale. Start with one product, and make the page, the code, and the feed agree about it.

Frequently Asked Questions

Should I delete a product page when it sells out?

No. Google warns not to delete an item to temporarily stop accepting orders or hide it, because adding it back after deletion will take a significant amount of time before it can show again. Leave the page up with the correct out of stock status, or use the pause attribute if you want to stop it showing.

What is the difference between preorder and backorder?

Preorder is for a new product that has not been released yet, and you are accepting orders for it. Backorder is for an existing product that is out of stock, will be back in stock at a later date, and that you are accepting orders for. Both require an availability date that is visible on the landing page.

What should I do with a product that is discontinued for good?

Remove it from your product data, and say plainly on the page that it has been discontinued, with a link to the replacement if there is one. Do not leave it marked out of stock forever, because Google says not to set availability to out of stock for products you are no longer selling.

Why does my product still show as in stock after it sold out?

Because the page, the structured data, and the feed were not updated in the same pass. Check all three for the same product, and fix the routine that let them disagree, not just the one product. Stock is often per variant, so check each variant separately.

Can I keep the buy button live for an out of stock product?

No. Google says that for out of stock products, you can display clear text such as sold out or item not available, or use a disabled buy button. A live buy button on a product you cannot supply misleads the customer and teaches every system that reads your pages not to trust the next stock label.