Picture a shopper asking an AI tool for a cast iron skillet under 80 dollars that is in stock right now. The tool has to answer with a name, a price, and a yes or no on stock. If your page only shows those facts inside a pretty layout, the tool has to guess where the price sits and hope it read the right number. If your page also carries those facts in a tidy labeled block, the tool can read them straight off. That labeled block is product schema.

It changes nothing your customers see. It lives in the code behind the page. It speaks a shared vocabulary from schema.org, so Google, Bing, and AI tools can all read the same block. One block on a product page can serve every one of them.

Put it where machines can reach it

Add the block as a script on each product page. The head of the page works. The body works too. What matters most is timing. The block has to arrive in the first HTML your server sends, before any JavaScript runs. Many AI crawlers never run your scripts. A block that only appears after scripts run is invisible to them, even though it looks fine in your browser.

If your product details only load through JavaScript, fix that first. Schema on top of an unreadable page will not help.

Start with the facts buyers ask about

Schema.org on its own demands nothing. It is a word list, not a rulebook. The rules come from the tools that read it. Google expects a product to carry a name, plus at least one of these: an offer, a review, or an overall rating. Leave all three out and the block gets ignored.

Inside an offer, the price is required. The currency is required for merchant listings and strongly advised everywhere else. Always add it. A bare number tells nobody whether you mean dollars, pounds, or euros.

Here is a full example for one product with one offer. Swap in your own business, product, and web address.

code
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Copper Creek 12-Inch Cast Iron Skillet",
  "image": [
    "https://example-shop.com/images/copper-creek-skillet.jpg"
  ],
  "description": "A pre-seasoned cast iron skillet with a helper handle and a smooth cooking surface.",
  "sku": "CC-CI-12",
  "brand": {
    "@type": "Brand",
    "name": "Copper Creek Kitchen Co."
  },
  "offers": {
    "@type": "Offer",
    "url": "https://example-shop.com/products/copper-creek-skillet",
    "price": "72.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.8",
    "reviewCount": "341"
  }
}
</script>

What each part does, in plain terms:

Sizes and colors need their own offers

One product in many sizes is not one offer. It is a group. Schema.org has a ProductGroup type for this job. The group holds what every variant shares, like the name and the business. Each variant becomes its own product inside the group, with its own offer, price, and stock status.

code
{
  "@context": "https://schema.org",
  "@type": "ProductGroup",
  "name": "Copper Creek Cast Iron Skillet",
  "brand": { "@type": "Brand", "name": "Copper Creek Kitchen Co." },
  "hasVariant": [
    {
      "@type": "Product",
      "name": "Copper Creek Skillet, 10-Inch",
      "sku": "CC-CI-10",
      "offers": {
        "@type": "Offer",
        "url": "https://example-shop.com/products/copper-creek-skillet?size=10",
        "price": "58.00",
        "priceCurrency": "USD",
        "availability": "https://schema.org/InStock"
      }
    },
    {
      "@type": "Product",
      "name": "Copper Creek Skillet, 12-Inch",
      "sku": "CC-CI-12",
      "offers": {
        "@type": "Offer",
        "url": "https://example-shop.com/products/copper-creek-skillet?size=12",
        "price": "72.00",
        "priceCurrency": "USD",
        "availability": "https://schema.org/OutOfStock"
      }
    }
  ]
}

Do not use AggregateOffer for sizes and colors. That type describes one product sold by many sellers, with a low price and a seller count. It is not for variants. If you squeeze variants into it, their prices collapse into a range and the per size stock facts vanish. Those stock facts are exactly what a shopper asks about.

Only mark up reviews shoppers can read

If the page shows 341 reviews, an overall rating built on 341 reviews is fair. If the page shows none, do not invent a rating. Google treats review markup with no visible reviews behind it as spam, and the penalty can mean the whole block on that page gets ignored. AI tools are quieter about it, but the effect is similar. A rating they cannot check is a rating they will not quote.

A lone review entry must name a real person as its writer. If you have no reviews yet, leave rating fields out entirely. An offer on its own still makes valid markup.

Keep your business name identical everywhere

The brand field connects a product to a business as an entity, not just as a word. Spell it the same way in your markup, in your llms.txt file, on your homepage, and on your listings. When all three match, tools resolve them to one business. When they differ, tools may treat them as three separate candidates. If your homepage already carries Organization markup, use the same name there too.

Check for a block before you add one

Many sites already carry a product block from a theme, a reviews app, or an SEO app. Open a product page, view the page source, and search for application/ld+json. If a block is already there, improve that block. Fill its gaps and fix its values. Adding a second block beside it creates two competing sets of facts, and tools may pick one at random or drop both.

Test it before you trust it

Two free tools need no signup:

Run both on a few pages. Include a variant page and an out of stock product. The out of stock check is the important one. Validators will not tell you a stock value is stale. Only a comparison against real inventory tells you that.

Mistakes that undo good markup

A price in the block that differs from the price on the page is the most common failure and the most costly. If the block says 72 dollars and the page shows 84 dollars, Google may ignore the block, and an AI tool that spots the clash may trust neither figure. Build the block from the same data that builds the page, never from a separate feed.

A second common failure is two blocks that disagree, often one from a theme and one from an app. Audit the page source for every JSON-LD script before you add your own.

A third is putting product blocks on the wrong pages. Product markup belongs on product pages. Category pages, blog posts, and the homepage do not need offer blocks, and adding them creates facts with no product page behind them.

What markup alone cannot do

Markup makes your products readable. It does not bring crawlers to your pages, keep prices fresh as stock changes, or let an AI tool finish a purchase. Those are separate jobs: crawler access, monitoring, and checkout. Start with readable pages, then work through the rest.

Frequently Asked Questions

Will shoppers see this markup on my pages?

No. It sits in the page code and changes nothing visible. Shoppers see the same page as before. Machines get a clearer copy of the facts.

What is the smallest block that still works?

A product name plus an offer with a price and a currency. Ratings, images, SKUs, and stock status make the block far more useful, but the name and offer are the floor.

My prices change often. How do I keep the markup honest?

Generate it from the same product data that renders the page, so a price change updates both at once. A block typed by hand and left alone will drift out of sync.

Does product schema guarantee AI tools will recommend me?

No. It makes your facts checkable, which is a requirement for being recommended with confidence. It does not promise placement, and no tool can promise that for you.

Verified Sources & Technical Documentation

links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.