← All guides · Ingenious AI team · November 14, 2026 · Reviewed November 14, 2026
Price Maths at Quantity 2: The Cart Total an Agent Verifies
The short answer
The price-maths check is the audit's arithmetic exam: add the sampled variant to a real cart at quantity 2, and reconcile four witnesses — feed price, JSON-LD price, page price and cart total — to the cent. Quantity 2 is deliberate: it exposes per-unit errors, rounding traps and discount logic that a single item conceals. A cart that quietly changes the quoted price loses the sale at the last step. The check runs on Pro audits; the free store audit covers the static price checks it builds on.
Four witnesses, one number
Every price your store states is a claim; the check cross-examines them. The feed claims a variant price. The JSON-LD claims a price. The rendered page claims a price. The cart — the only witness that has committed to anything — states a line price and a total for two units. price_math passes when the witnesses reconcile to the cent: the unit price consistent everywhere, the quantity-2 total exactly twice the unit (or an explained, stated discount structure — the check reads the cart state to tell arithmetic from ambush). Discrepancies are reported with the numbers, so the fix starts from evidence, not suspicion.
Why reconciliation matters to an agent is the quote. The agent told its buyer a price derived from your data witnesses. The cart is where that quote becomes a charge. A store whose cart disagrees with its data has, from the agent's side, changed the price mid-purchase — the one unforgivable move in a transaction conducted entirely on stated facts.
Why quantity 2
A single item cannot distinguish a unit price from a total; every error hides inside that ambiguity. Two items force the multiplication into the open. Per-unit rounding that rounds the line instead of the unit shows up as a cent or two of drift. A 'second item' discount that exists only in the cart's logic — never stated in the feed or the page data — shows up as a total that contradicts the quote, benign in intent and fatal in effect: the agent's buyer was promised one number and is being charged another. Quantity-tier pricing, bundle adjustments and tax-inclusive-vs-exclusive presentation all declare themselves at quantity 2 in ways they never do at 1.
The check also piggybacks on the live cart machinery — the same add and read-back as live_cart_add and the gauntlet's cart_view step — so its failures often arrive with context: a cart that re-prices by region (region_currency_switch) fails arithmetic and session consistency in one motion.
Fixing a reconciliation failure
Read the evidence's numbers first: which witness disagrees, and by how much. A cent-level drift points at rounding policy — fix it at the unit, in one place. A structural gap (cart lower or higher by a discount-shaped amount) points at cart-only pricing logic: state the logic in the data (the feed and JSON-LD should reflect the price the cart will charge for the quantities agents buy) or simplify the logic until data and cart can agree. A whole-currency gap points back to the session problems in currency consistency.
Then retest — the check is deterministic, and a genuine fix reconciles exactly. This is one of the Pro checks whose pass is a small ceremony worth having: four independent statements of your price, agreeing to the cent, in a real cart.
Sources
- Schema.org Product vocabulary, the structured-data type the Catalog checks parse (schema.org, 2026).
- Google Merchant Center product data specification, Google's required and optional product-feed attributes (support.google.com, 2026).
- The Sitemaps protocol, the format the sitemap checks read (sitemaps.org, 2026).
There is a merchandising corollary: any pricing mechanic you cannot state in the data is a mechanic the agent channel cannot sell under. Flash discounts applied only in the cart, mystery tiers, spend-and-save thresholds computed at totals — each either gets published as structured terms the quote can incorporate, or it quietly excludes agent purchases from the promotion's benefit and, often, from completing at all. Promotions are designed in marketing tools that think in rendered banners; the price-maths check is the reminder that a second audience reads only the numbers.
Five actions to take
- Reconcile the four witnesses. Feed, JSON-LD, page and cart must state the same unit price — compare them yourself at quantity 2.
- Round at the unit, in one place. Cent-level drift is a rounding-policy bug; fix the policy, not the pages.
- State cart-only pricing in the data. Quantity discounts and bundle logic the cart applies must be reflected in feed and JSON-LD prices, or the quote will contradict the charge.
- Keep tax presentation consistent. Inclusive on the page and exclusive in the cart (or the reverse) is a reconciliation failure with a settings cause.
- Retest to the cent. price_math passing means exact agreement; 'close' is the failure wearing a friendlier face.
Worked example: Copperline Hardware, 60 to 84
Example — a fictional store, shown to illustrate how the audit's findings and fixes fit together. These are the example's numbers, not a customer's results.
Copperline Hardware is a fictional 160-product hardware store. Its first (Pro) audit scored 60/100:
- Live purchase probe: at quantity 2, the cart total came to 2 cents less than twice the JSON-LD price (price_math, fail) — the cart rounded the line total down while the data rounded the unit price up.
- Live purchase probe: the live cart add landed and the cart read back correctly (live_cart_add, pass) — the path worked; the arithmetic did not.
- Catalog: all static price checks passed — the disagreement existed only between the data and the cart, invisible to any page-level review.
The fixes, in the order the audit's impact weights dictate:
- Unified the rounding policy: unit prices rounded once, at the unit, and line totals computed as exact multiples — in the cart configuration and the feed export alike.
- Re-ran the probe across three sampled products at quantity 2: all reconciled to the cent.
The re-audit scored 84/100. Two cents is the smallest possible failure and the most instructive: nothing was 'wrong' anywhere a human looks, and the store's prices were nonetheless not in agreement with themselves. Only a witness-cross-examining check could see it, which is the argument for the probe's existence.
Run the free store audit · See pricing · Ingenious AI
Frequently asked questions
What does the price_math check do?
On Pro, it adds the sampled variant to a real cart at quantity 2 and reconciles the feed price, the JSON-LD price, the page price, the cart line and the cart total to the cent. Agreement passes; any witness disagreeing fails with the numbers as evidence.
Why quantity 2 specifically?
One item cannot distinguish a unit price from a total. Two force the multiplication into the open, exposing per-unit rounding drift, unstated quantity discounts and tax-presentation mismatches that quantity 1 conceals.
My cart applies a legitimate quantity discount. Does that fail?
An unstated one does — the quote (from your data) contradicts the charge. If the discount is real policy, state it in the data the agent quotes from, so feed, JSON-LD and cart tell the same story at the quantities agents buy.
Is a one-cent difference really a fail?
Yes, deliberately: 'to the cent' is the standard because the agent's quote is exact. Cent-level drift is almost always a rounding-policy inconsistency — cheap to fix once, at the unit, and symptomatic of prices computed in several places.
What does price_math need to run?
A working live cart path: the same add and read-back as live_cart_add. If the cart add stalls, price maths has nothing to reconcile — fix the purchase path first, then the arithmetic.
Keep reading
Start from the top of the subject: Why AI Shopping Agents Skip Your Store · Can AI Agents Buy From Your Store? · Agentic Commerce Checklist for Online Stores. Then run the instrument itself: the free store audit, the Store Audit lab, and the pricing page. All guides are listed in the guides index.
Previous guide: Currency Consistency: One Currency Across Page, Feed and Cart · Next guide: The Live Cart Add: A Real Purchase Attempt, Honestly Bounded