Technical SEO
Product Schema Explained: Getting Price, Stock and Reviews in Google
By Shayan Ahmad · · 6 min read

When you search for a product on Google, some results show a price, a stock status or a row of review stars, and others show only a title and a short description. The difference is often product schema markup: a small block of structured code on the page that tells Google the facts about the product in a format it can read reliably.
This guide explains what Product markup does, which fields matter most, and how to test it so you know it is working. You do not need to be a developer to follow it, though you may need one to make changes.
What Product Schema Actually Is
Schema markup is a shared vocabulary, maintained at schema.org, that websites use to describe things such as products, businesses, events and articles. Product markup describes a product: its name, image, brand, price, availability, reviews and identifiers.
Google reads this markup alongside the visible page. When it trusts the data, it can use it to show richer search results and to understand your product catalogue better.
The format to use
Structured data can be written in a few formats, but JSON-LD is the one Google recommends. It is a block of code that sits in the page's HTML, separate from the visible content, which makes it easier to add and maintain. Most modern e-commerce platforms and themes output JSON-LD by default.
What it does not do
Product markup is not a ranking shortcut. It does not move a weak page to the top of results. What it does is make your listing more informative and eligible for enhanced displays, which can help more searchers choose your result.
The Fields That Matter Most
You do not need to fill in every possible property. Focus on the ones Google uses for product results.
The core details
- name: the product name, matching the main heading on the page.
- image: one or more URLs of clear product images.
- description: a short summary of the product.
- brand: the brand that makes the product, which is not always your store name.
The offer
The offer describes what it costs and whether it can be bought. The key properties are:
- price and priceCurrency: the current selling price and its currency.
- availability: for example in stock, out of stock or pre-order.
- url: the page where the product can be bought.
- shipping and return details: optional properties that can show delivery costs and return windows in some results.
Reviews and ratings
If real customers review your products on the page, aggregateRating (the average and count) and individual review properties let Google show star ratings. These must reflect genuine reviews visible on the page. Never mark up reviews that do not exist or that come from somewhere else.
Identifiers
Global identifiers such as GTIN (barcode numbers), MPN (manufacturer part numbers) and SKU help Google match your product to the same item elsewhere. If your products have barcodes, include them. They are especially useful for resellers of branded goods.
Variants and Multiple Offers
Products with sizes or colours need a little more care. If variants have different prices or stock levels, the markup should reflect that. Google supports describing a product group with variants, so each variant's price and availability can be shown accurately. At the very least, make sure the price in the markup matches the price a shopper sees when they land on the page.
A Quick Example of Good and Bad Markup
Imagine a ceramic mug sold in three colours at the same price. Good markup gives the mug's real name, a clear image, the brand, the price in the right currency, "in stock" for the colours you have and the average rating from the reviews shown on the page. Bad markup might show last month's sale price, list the store name as the brand, claim every colour is in stock when one has sold out, or include a rating with no reviews on the page. The first helps Google trust your listing. The second gives it reasons to ignore it.
Rules That Keep You Out of Trouble
Google treats structured data as a promise about the page. Break that promise and it can ignore your markup or, in serious cases, take manual action.
- Mark up what is visible. Every value in the markup should match something a visitor can see on the page.
- Keep it current. Price and availability must update when they change. Stale markup is one of the most common problems.
- Use one source of truth. If a theme and an app both output Product markup, you can end up with two conflicting versions. Pick one.
- Only mark up products on product pages. Category pages listing many products should not carry Product markup for each item as if it were the main product.
How to Test Your Product Markup
Testing is quick and free. Do it whenever you change themes, apps or templates.
Test a single page
Google's Rich Results Test lets you enter a URL and see which structured data Google detects, whether the page is eligible for product results, and any errors or warnings. The Schema Markup Validator checks the code against the full schema.org vocabulary. Test one product page of each template type, such as a simple product, a product with variants and an out-of-stock product.
Monitor the whole site
In Google Search Console, the enhancement reports for product snippets and merchant listings show how many pages have valid markup and which have errors. Check them after any change and every few weeks as routine.
Know the difference between errors and warnings
Errors usually mean a page is not eligible for the rich result. Warnings mean a recommended field is missing. Fix errors first, then work through warnings that are easy to resolve, such as adding a brand or identifier.
If you are not sure what Google sees, our technical SEO service includes a full structured data review. For a quick check of the basics on any page, try our free meta tag checker alongside Google's tools.
Where Product Schema Fits in Your SEO
Structured data works best on pages that are already strong. Good titles, useful descriptions, clear images and solid internal links do the heavy lifting. Markup then helps Google present that page well. If you are planning broader improvements to your store, our e-commerce SEO service handles content, technical fixes and structured data together.
Structured data also helps AI-driven search features understand products, because it presents facts in a clean, consistent way. Our guide to getting cited by AI search covers that wider picture.
FAQs
Will product schema always get me star ratings in Google?
No. Valid markup makes a page eligible, but Google decides whether to show enhanced results for each search. Accurate markup on a useful page gives you the best chance.
Do I need a developer to add Product markup?
Often not. Most e-commerce platforms and many themes already output it. A developer is useful when the built-in markup is missing fields, outputs wrong prices or conflicts with an app.
Why is my markup valid but no rich result appears?
Eligibility is not the same as display. Google may choose not to show the enhancement, or may not have recrawled the page yet. Check Search Console reports over a few weeks before changing anything.
Should I add schema to category pages?
Category pages can use other types, such as breadcrumb markup, but should not present every listed product as if it were the main product of the page.
Check Your Product Markup
If you want to know whether your product pages are sending Google the right information, start with a free SEO audit. We will flag missing fields, conflicting markup and pricing errors in plain English.
- product schema
- structured data
- rich results
- json-ld
- ecommerce seo
Have a question about this for your own site?
A 15-minute call is usually enough to tell whether it applies to you and what to do first.


