xfix.ai ux
PDP-A02 · HighApplies toStores

Price and availability present in DOM as text (not JS/image only)

The product page's price and availability are in the HTML it sends, before any JavaScript runs. The audit fetches the page again without running scripts and reads the raw HTML, its structured data included. A failed fetch or a bot check leaves the rule not assessable. 0 of the 31 published store audits that judged it fail it (0%), as of 29 Nov 2026.

Step: AI search & agentsSeverity: HighWeight: 11.5 pts of the AI Shoppers scoreFails on 0% of 31 stores judgedSource: Google Search Central · Understand the JavaScript SEO basics

What it looks for

The product page's price and availability are in the HTML it sends, before any JavaScript runs. The audit fetches the page again without running scripts and reads the raw HTML, its structured data included. A failed fetch or a bot check leaves the rule not assessable.

  • Pass: Both are there: a price (an amount with $, €, £, ¥, USD, EUR or GBP, or a price in the product data) and availability (words such as 'in stock' or 'sold out', or an availability field in the product data).
  • Partial: Only one of the two is there.
  • Fail: Neither is there.

How it is checked

  1. Fresh browser. Signed out, cookies cleared, desktop and mobile viewports, the store's live theme.
  2. Open a product. A real, in-stock product page, found the way a shopper finds one.
  3. Read it like an agent. The markup and structured data a shopping agent reads, not the layout.
  4. Record the verdict. Pass, partial or fail, saved with the evidence it was judged on: a screenshot where the rule is visual.

Why it matters

Some AI shopping agents and crawlers read the HTML a page sends without running its JavaScript. If the price and availability only appear after scripts run, those agents see a product with no price and no stock status.

How to fix it

  1. Server-render the price and the availability line. On Shopify, Woo, and BigCommerce this is the default; on custom or heavily-Reactified sites it is often broken.
  2. Add price and availability to your JSON-LD Product schema too, agents check both.
  3. Test with: curl -s https://your-store.com/products/... | grep -i "\$", if price does not show, agents cannot see it.

What the xfix ux team says about this rule

If the price only exists after JavaScript has run, a good share of the machines reading your page will report that it has none.

Drafted by the xfix ux team and approved on 22 Sept 2026.

Sources

How to cite it

0 of 31 online stores audited by xfix ux fail the rule "Price and availability present in DOM as text (not JS/image only)" (PDP-A02) as of November 2026. xfix ux, xfix.ai/ux/rules/stores/price-in-html-not-javascript/

Questions

What does PDP-A02 check?

The product page's price and availability are in the HTML it sends, before any JavaScript runs. The audit fetches the page again without running scripts and reads the raw HTML, its structured data included. A failed fetch or a bot check leaves the rule not assessable.

What counts as a pass on PDP-A02?

Both are there: a price (an amount with $, €, £, ¥, USD, EUR or GBP, or a price in the product data) and availability (words such as 'in stock' or 'sold out', or an availability field in the product data).

What counts as a fail on PDP-A02?

Neither is there.

How many stores fail PDP-A02?

0 of the 31 published store audits that judged it fail it (0%), as of 29 Nov 2026.

Why does PDP-A02 matter?

Some AI shopping agents and crawlers read the HTML a page sends without running its JavaScript. If the price and availability only appear after scripts run, those agents see a product with no price and no stock status.

How do I fix a fail on PDP-A02?

Server-render the price and the availability line. On Shopify, Woo, and BigCommerce this is the default; on custom or heavily-Reactified sites it is often broken. Add price and availability to your JSON-LD Product schema too, agents check both. Test with: curl -s https://your-store.com/products/... | grep -i "\$", if price does not show, agents cannot see it.