Skip to main content
PushUP

Structured data

WooCommerce Product schema: what Google needs to show price and stock

What Product schema is, what WooCommerce outputs itself, which fields are often missing (GTIN, brand), how to avoid clashing with your SEO plugin and how to test.

Published 4 min read

When Google shows a product in results with a price, availability or a star rating, that information usually comes from structured data in the product page's code. It's text visitors don't see, and it tells Google precisely: this is a product, this is its name, this is the price, it's in stock.

In a WooCommerce store, part of the work is already done. This guide explains what's there, what's usually missing, and how to test it.

What Product schema is

Structured data is written in the schema.org vocabulary, and Google recommends adding it in JSON-LD format: a block of code inside the page, separate from the HTML visitors see. A Product has properties such as name, image, description, brand and SKU, and inside it an Offer with price, currency and availability.

Google documents two kinds of results related to this:

  • Product snippets: extra information in a regular result, such as ratings and reviews, for pages that describe a product.
  • Merchant listings: results for products you can buy on the site, with price, availability and sometimes shipping and returns information.

Each kind has a list of required and recommended fields, in Google Search Central's documentation on product structured data. Work from that page rather than from older lists online, because it gets updated.

What WooCommerce outputs on its own

WooCommerce adds a Product JSON-LD block to product pages with the name, description, image, SKU, and an Offer with price, currency and availability. When a product has reviews, the rating is included too.

That's a good starting point. In practice, though, a few things are usually missing, and there's another player involved: your SEO plugin.

Five common problems

1. Two Product blocks for the same product

Many SEO plugins add structured data of their own, and some replace or extend what WooCommerce outputs. When the settings aren't coordinated, the page contains two descriptions of the same product, sometimes with different data. Before adding schema, check what the page already outputs.

2. Missing GTIN and brand

A GTIN is the number under the barcode (for example, EAN-13). The first digits are a GS1 prefix; barcodes issued in Israel usually start with 729. Google recommends including a GTIN when a product has one, and a brand as well. WooCommerce doesn't have an obvious place for these fields in every installation, so many stores leave them out.

3. Price or availability that doesn't match the page

Structured data has to reflect what visitors see. If the price on the page changed for a sale and the structured data still has the old price, or a product sold out and is still marked as in stock, that's a contradiction Google can detect. On products with variations, where the price depends on the choice, it's worth checking especially carefully that the data matches what's shown.

4. Reviews that don't really belong to the product

A star rating has to come from genuine customer reviews of this product. Reviews copied from another site, or a rating typed in by hand, violate Google's structured data guidelines.

5. Weak images and descriptions

Structured data pulls the main image and the description from the product. An image that's too small, or a one-line description, is limited from the start. This is where content work on your products and structured data meet.

How to test

  • Rich Results Test: enter the URL of a product page and see which structured data Google detects, and whether there are errors or warnings.
  • Schema Markup Validator: checks validity against schema.org, including types Google doesn't display. Useful for finding duplicate blocks.
  • Search Console: the product reports show, across the whole site, how many pages are valid, how many have issues, and which fields are missing. This is where you see the whole catalog, not a single page.

Testing one page isn't enough. Check at least a simple product, a product with variations, a product on sale and a product that's sold out.

How Push-UP handles this

Push-UP first reads what the page already outputs, from WooCommerce and from your SEO plugin, so it never creates a duplicate block. Then it fills in what's missing in the Product schema: price, availability, GTIN or MPN where they exist, and reviews. Every change is recorded in the change log with its previous value, and you can undo it in one click.