How to add product structured data
Structured data is what lets a search result show a price and stock status without a customer ever clicking through.
Structured data is a block of code on a page that describes its content in a format search engines can read directly, rather than having to interpret it from the visible page. For a product page, that means telling Google explicitly what the price is, whether it is in stock, and what it is called — which is what allows a search result to show a price or an availability badge without the customer clicking through first.
What product structured data actually does
Without structured data, a search engine has to guess at a product's price and availability from the visible page, which it does imperfectly and inconsistently. With it, that information is stated explicitly in a standard format (Schema.org's Product type, usually output as JSON-LD), and the search engine can use it with confidence — including showing it directly in search results as a rich result, where the search platform supports that for your type of content.
Structured data helps a search engine understand and display a page correctly. It is not a ranking factor on its own, and adding it does not directly move a product up search results — its benefit is a more informative, more clickable listing once a page is already ranking.
What a complete product schema includes
| Field | What it tells a search engine |
|---|---|
| Name | The product's title, matching what is shown on the page. |
| Price and currency | What the product costs and in what currency, kept current with the actual live price. |
| Availability | In stock, out of stock, or pre-order — this needs to match the real stock status or it misleads searchers. |
| Images | At least one product image, ideally the same ones shown on the page itself. |
| Reviews or ratings, if you genuinely have them | Only include this if real customer reviews exist for the product — fabricated or placeholder ratings are against search engines' own guidelines and this site's own content standards. |
How this works in WooCommerce
WooCommerce outputs a reasonable baseline of product structured data automatically for most themes, covering the core fields — name, price, currency and availability — without any extra configuration. Whether it is complete and fully valid depends on your specific theme and any SEO plugin you have installed, since some themes and plugins add to or override what WooCommerce generates by default.
Most general-purpose SEO plugins for WordPress include their own structured data handling that can extend or replace WooCommerce's default output with more complete markup — reviews, brand information, additional product attributes. If you use one, check its settings for a product schema or structured data section rather than assuming WooCommerce's default output alone is complete.
Checking what your store actually outputs
-
View a live product page's structured data
Use a structured data testing tool to check a real product URL on your live site, not a description of what should be there in theory.
-
Confirm price and stock status match the actual page
A mismatch between what schema states and what the page visibly shows is a common and easily missed error, particularly on a store where prices or stock change frequently.
-
Fix any errors the testing tool flags
Missing required fields or invalid formatting will be reported clearly by most testing tools — work through them one at a time rather than guessing.
-
Re-check after any theme or plugin change
Switching themes or SEO plugins can change how structured data is generated, sometimes without any visible change to the page itself. A schema check is worth adding to your post-change testing routine.
Structured data claiming a product is in stock when it is not, or showing an outdated price, is worse than having no structured data at all — it actively misleads both search engines and the customers who trust what they see in a search result. If your stock levels change frequently or you sell across multiple channels, make sure whatever generates your schema is reading the same live stock data as the page itself.
If you manage stock across more than one sales channel, keeping structured data accurate depends on the same underlying problem as keeping the storefront accurate — see keeping stock in sync across channels.
Related reading
The right platform question is not which one has more features — it is how much control you want and what you already know.
How to set up WooCommerceInstalling the plugin is the easy part — this is the order to configure it in so nothing important gets skipped.
How to keep stock in sync across channelsSell the same product in two places without a single source of truth for stock, and overselling is a matter of when, not if.
How to test a store before you launch itA store looking finished and a store being tested are two different things, and the gap between them is where launch-day problems live.