---
title: "Make your product markup say the same thing as the page"
description: "Why the JSON-LD price and availability must match what shoppers see on the product page, how the scanner compares them, and the caching and tax settings that cause drift."
canonical_url: https://agentic-readiness-scanner.space.fast/knowledge-base/markup-matches-visible-page
check_id: B2.6
check_title: "Markup matches visible page"
section: "B2 Product structured data"
priority: expected
weight: 2
level_gate: none
depends_on: [B2.2, A3.2]
keywords: ["structured data price mismatch", "JSON-LD price does not match page", "schema markup visible content", "Google structured data guidelines", "availability mismatch", "WooCommerce schema price wrong"]
author: "Matthias Reinholz"
updated: 2026-11-03
---

# Make your product markup say the same thing as the page

> Why the JSON-LD price and availability must match what shoppers see on the product page, how the scanner compares them, and the caching and tax settings that cause drift.

Check B2.6 (Markup matches visible page) in section B2, Product structured data. Priority: expected. Weight 2. Expected of a well-run store and counted in the section score. Not a level gate. It counts toward its section score. Runs after B2.2, A3.2.

## In short

Structured data is a promise about the page. If the JSON-LD (the structured data a product page carries for machines) says 24 euros and the page shows 29, or the markup says in stock while the page says sold out, agents and search engines get two answers and cannot trust either. This check compares the markup price with the prices visible on the page, and the markup availability with the add-to-cart button.

## What this check looks at

For each sampled product page with a priced Offer (the part of the markup that states price and stock), the scanner compares two pairs of facts.

- **Price.** It collects every `price`, `lowPrice` and `highPrice` from the page's offers, including the offers of every variant. It then reads the page text and finds every amount written next to a currency sign or code, such as `€24.00`, `24,00 EUR` or `$1,299`. It also reads the amounts inside elements whose class names a price block, such as `price` or `product-price`.
- **Availability.** It reads what the markup claims: in stock when any offer is InStock, LimitedAvailability, OnlineOnly or InStoreOnly, and out of stock when every offer is OutOfStock, SoldOut or Discontinued. It then reads what the page shows: an add-to-cart or buy-now control means in stock, and wording such as "out of stock" or "sold out" (or the German, French or Spanish equivalent) without such a control means out of stock.

Google's structured data general guidelines require markup to describe the content that is visible on the page. Markup that says something the page does not is against those guidelines.

## Why it matters for AI agents

Agents often read both layers. They take the structured data as the precise source and the visible text as confirmation. When the two disagree, the agent has to pick one, and either choice can be wrong. A shopper sent to buy at the markup price who sees a higher price on arrival loses trust in the agent and in the store.

Mismatches also have a direct cost on Google. Its guidelines say structured data must represent the visible content, and Google can take manual action against markup that does not.

This check has weight 2, expected, and gates no level. It depends on the [Offer check](https://agentic-readiness-scanner.space.fast/knowledge-base/offer-price-currency-availability) for the markup side and on the [server-rendered content check](https://agentic-readiness-scanner.space.fast/knowledge-base/server-rendered-product-content) for the page side. A price that only appears after JavaScript runs is not in the HTML the scanner reads.

## How the scanner decides

A markup price counts as visible when any amount in the page text matches it within one cent. The scanner reads the first 50,000 characters of page text.

- **Pass:** on every compared page, a markup price is visible and the availability does not contradict the page.
- **Fail:** on at least one page, no markup price is visible and the page's price blocks show other amounts. That is a clear contradiction.
- **Warn:** on at least one page, the markup price is not visible and no readable price block contradicts it either. This happens when the price uses a currency marker the scanner does not know, or is drawn by script.
- **Warn:** the price matches, but the markup availability contradicts the add-to-cart state.
- **Skip:** no sampled page has an Offer with a price.

Availability is compared only when both sides give a clear answer. A page with no add-to-cart control and no stock wording is not judged. The evidence lists, per page, the markup prices, the first visible prices, the amounts in price blocks, and the availability on both sides.

## How to fix it

The reliable fix is structural: render the markup from the same product object, in the same request, as the visible page.

### WordPress and WooCommerce

- **One source of markup.** If WooCommerce core and an SEO plugin both output Product JSON-LD, one of them may use a different price. Keep one.
- **Tax display.** Under WooCommerce, Settings, Tax, the shop can display prices including or excluding tax. Make sure the markup uses the same basis as the price shoppers see.
- **Sale prices.** Check that the markup uses the active sale price, not the regular price, while a sale runs.
- **Caching.** A page cache can hold an old price in the HTML while the cart shows a new one. Purge the cache when prices or stock change. Some SEO plugins cache their markup separately, so clear that cache too.
- **Currency switchers.** A plugin that converts the visible price into the visitor's currency must convert the markup price and `priceCurrency` as well.

### Shopify

- Themes that use the native product markup generate it from the same product object as the page, so they rarely drift.
- An SEO app that adds its own Product markup may lag behind price changes. Keep the theme's markup or the app's, not both.
- With Shopify Markets, check that the markup shows the same currency and price as the page for each market.

### Any other stack

- Build the JSON-LD in the same template as the visible price, from the same variables.
- Do not cache markup separately from the page.
- Format visible prices with a currency sign or ISO code next to the amount, such as `€24.00` or `24.00 EUR`. A bare number is not recognisable as a price.
- Update availability in the markup from live stock, the same value that enables or disables the add-to-cart button.

## Verify it yourself

Compare the markup price with the page in two commands:

```bash
curl -s https://example.com/product/stoneware-mug/ | grep -o '"price": *"[^"]*"'
curl -s https://example.com/product/stoneware-mug/ | grep -o -E '(€|\$|£) ?[0-9][0-9.,]*' | head
```

The first number should appear in the second list. Then open the page in a private browser window and compare the add-to-cart button with the `availability` value in the markup. Google's [Rich Results Test](https://search.google.com/test/rich-results) shows the markup values next to a rendered screenshot of the page.

## Common mistakes

- **Tax-exclusive markup on a tax-inclusive page.** The markup says 20.00 while shoppers see 23.80.
- **A cached markup block.** The price changed yesterday, but the SEO plugin's cached JSON-LD did not.
- **Regular price in the markup during a sale.** The page shows the sale price, the markup shows the old one.
- **Markup says InStock on a sold-out product.** The availability is hard-coded in the template.
- **Price drawn by JavaScript.** The visible price is injected after load, so the HTML shows none and the check warns.

## FAQ

### Does Google penalise structured data that does not match the page?

Google's structured data guidelines require markup to describe visible content. Markup that violates its guidelines can lose rich result eligibility and can receive a manual action.

### My variable product shows a price range. Will that match?

Yes, if the range is visible. The scanner compares every price, low price and high price in the offers, including variant offers. One visible match is enough.

### Why does the check warn that the price was not found?

No markup price appears next to a currency marker in the page text, and no price block shows a conflicting amount. The usual causes are a price rendered by JavaScript or an unusual currency format.

### Which side should I change, the markup or the page?

Neither by hand. Change the template so both come from the same data. Then they cannot drift apart again.

## The fix in one step

Generate the Product markup from the same product object that renders the page so price and availability can never diverge, and avoid caching markup separately from the page.

### Prompt for a coding agent

On sampled product pages of this site, the price or availability in the Product JSON-LD differs from what the page shows: the page's price blocks show other amounts, the markup price does not appear next to a currency sign or code in the page text, or the markup says in stock while the page shows no add-to-cart control and "out of stock" wording (or the reverse). Find the cause: two sources of Product markup, an SEO plugin caching its markup, tax-inclusive versus tax-exclusive display, a regular price in the markup during a sale, a currency switcher that converts only the visible price, availability hard-coded in the template, or a page or object cache serving old values. Make the markup and the visible page come from the same product data in the same request, and do not cache the markup separately. Verify on a few product URLs that the price in `curl -s <product-url> | grep -o '"price": *"[^"]*"'` appears in the visible price, and that the availability matches the add-to-cart button.

## Sources and specifications

- [Google structured data general guidelines](https://developers.google.com/search/docs/appearance/structured-data/sd-policies)

Source: https://agentic-readiness-scanner.space.fast/knowledge-base/markup-matches-visible-page (Agentic Readiness Scanner knowledge base, by Matthias Reinholz).
