In short
An AI agent comparing offers or preparing a purchase for a user needs three reliable pieces of information on the page: the final price to pay, the actual availability, and the options with their price and availability. Once this check is done, the product or booking page displays as text the price including all taxes, mandatory fees and the shipping cost or how it is calculated, and the stock status of each variant, and these values are identical in the cart, the structured data and the feeds. The check applies to online stores, booking sites and SaaS offers with public pricing. This topic is experimental: no agent guarantees that it will recommend the best-described offer.
Why it matters
An agent comparing three stores reads the pages like a human in a hurry: it takes the displayed price. If service fees, an eco-contribution or mandatory shipping only appear at the last step, its comparison is wrong; if it finds out at payment, it has to go back to the user, and the purchase is often abandoned. Consumer agents are designed to ask for confirmation before a purchase: OpenAI states, for example, that ChatGPT agent asks for permission before consequential actions. A gap between the advertised price and the final price then becomes visible to the user at the worst possible moment.
Hidden information is also unreadable information. A price in an image, availability shown only when hovering over a swatch, an option's price visible only after selecting it, or a rate reserved for signed-in accounts does not exist for an agent that reads the page text or the accessibility tree.
It is also a legal obligation. In the European Union, Directive 2011/83/EU requires informing consumers, before they are bound, of the total price including taxes and of any additional charges (shipping in particular); Directive 98/6/EC, as amended by Directive (EU) 2019/2161, regulates how price reductions are announced, by reference to the lowest price applied over the previous 30 days. On the search engine side, Google states that it may try to verify product data before showing it in merchant listings, and Merchant Center checks consistency between the feed and the page.
What it improves
- Comparisons and recommendations by assistants Your offers are described with exact, comparable values. A necessary condition, never a guarantee of being recommended.
- Purchases delegated to an agent Fewer interruptions at payment because of a different price or a sold-out option. A plausible effect, not publicly measured.
- Conversion Fees discovered late are a classic cause of cart abandonment, to be measured on your site with drop-off analysis (opens in a new tab).
- Google merchant listings and Merchant Center Fewer disapprovals for price or availability mismatches.
- Compliance Display of the total price and of reductions in line with consumer law.
How to check
1. Are the price and availability in the HTML?
curl -s https://example.com/chaussures/trail-alpine | grep -o -i -E '[0-9]+[,.][0-9]{2} ?€|InStock|OutOfStock|en stock|épuisé|rupture' | sort | uniq -c
The price and the stock status must appear in the initial HTML or, at the very least, in the rendered DOM. See inspect the initial HTML (opens in a new tab).
2. Are the options described? On the product page, without selecting anything, each option (size, color, plan, room) must show its price if it differs, and its status: available, limited quantity, sold out, made to order with a lead time.
3. Does the final price match? Add the product to the cart with a typical delivery address and go as far as the payment page, without paying. Fill in this table for your ten main products or offers:
| Product / variant | Price incl. VAT on the page | Marked-up price (Offer.price) |
Feed price | Fees shown on the page | Total at payment | Gap explained? |
|---|---|---|---|---|---|---|
| Trail Alpine 42 blue | €119.00 | 119.00 | 119.00 EUR | shipping €4.90, free from €150 | €123.90 | yes |
| Trail Alpine 41 blue | €119.00 | 119.00 | 119.00 EUR | — | unavailable | sold out not shown on the page: to fix |
| Double room, 2 nights | €180.00 | 180.00 | — | tourist tax mentioned | €183.30 | yes |
Any gap that the page does not explain must be fixed.
4. Does the structured data match? Run the product page through the Rich Results Test: price, priceCurrency and availability must match what is displayed for the default variant. See sync prices and stock across site, feeds and markup (opens in a new tab).
How to implement
Before you start
What must appear as text on the product page, near the purchase button:
| Information | Example | Rule |
|---|---|---|
| Price incl. VAT and currency | €119.00 |
price of the product as ordered, taxes included for a consumer |
| Reduction | €119.00 instead of €149.00 |
a reference price that complies with the rules on price reduction announcements |
| Mandatory fees | includes a €6.00 eco-contribution, cleaning fee €40 |
included in the price or stated next to it |
| Shipping | Shipping €4.90, free from €150. Ships within 24 h |
cost or how it is calculated, lead time |
| Availability | In stock, Only 3 left, Made to order, ships within 3 weeks, Sold out |
actual status, per variant |
| Options | Size 41: sold out, 3-year warranty: + €19.00 |
price and status of each option before selection |
| Unit price | €39.80 / kg |
when regulations require it |
| Conditions | returns, warranty | visible link. See display return policies and warranties (opens in a new tab) |
HTML and structured data template for one variant, ready to adapt:
<section aria-labelledby="titre-offre">
<h2 id="titre-offre">Price and availability</h2>
<p><strong>€119.00</strong> incl. VAT <s>€149.00</s> <span>(lowest price in the last 30 days: €129.00)</span></p>
<p>Shipping €4.90, free on orders from €150. Ships within 24 business hours.</p>
<fieldset>
<legend>Shoe size</legend>
<input type="radio" id="p41" name="pointure" value="41" disabled>
<label for="p41">41: sold out</label>
<input type="radio" id="p42" name="pointure" value="42" checked>
<label for="p42">42: in stock</label>
<input type="radio" id="p43" name="pointure" value="43">
<label for="p43">43: only 2 left</label>
</fieldset>
</section>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Alpine trail shoe, blue, 42",
"sku": "ALP-BLEU-42",
"offers": {
"@type": "Offer",
"url": "https://example.com/chaussures/trail-alpine?variant=42",
"price": 119.00,
"priceCurrency": "EUR",
"priceSpecification": {
"@type": "UnitPriceSpecification",
"priceType": "https://schema.org/StrikethroughPrice",
"price": 149.00,
"priceCurrency": "EUR"
},
"availability": "https://schema.org/InStock",
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingRate": { "@type": "MonetaryAmount", "value": 4.90, "currency": "EUR" },
"shippingDestination": { "@type": "DefinedRegion", "addressCountry": "FR" },
"deliveryTime": {
"@type": "ShippingDeliveryTime",
"handlingTime": { "@type": "QuantitativeValue", "minValue": 0, "maxValue": 1, "unitCode": "DAY" },
"transitTime": { "@type": "QuantitativeValue", "minValue": 1, "maxValue": 3, "unitCode": "DAY" }
}
}
}
}
</script>
For a product with several variants, the complete markup (ProductGroup, hasVariant) is detailed in implement Product, ProductGroup and Offer (opens in a new tab).
Warning: never display an unattainable “from” price (“from €9” for an option that cannot be found) or a fake strikethrough price. It misleads the user, the agent notices at payment, and the practice is regulated by consumer law.
Booking sites: display the total price of the stay for the requested dates and number of guests, service and cleaning fees included, and mention separately the taxes payable on site (tourist tax) with their amount. The dates and travelers must be in the URL (see keep URLs stable (opens in a new tab)). SaaS: publish a pricing page as text, with what is included, the price excluding and including taxes, the billing period and the limits of each plan.
WordPress
Versions WordPress 6.5 and later, WooCommerce 9 and 10, November 2026.
- Prices including VAT: with taxes enabled, in
WooCommerce > Settings > Tax, set “Display prices in the shop” to “Including tax”, and add a price display suffix (“incl. VAT”) if you also sell to businesses. - Availability: in
WooCommerce > Settings > Products > Inventory, enable stock management and the stock display. Enter stock for each variation, not only at parent product level. - Sold-out options: WooCommerce hides or grays out unavailable combinations depending on the settings; check on the product page that unavailability is shown as text before selection, and not only afterwards.
- Shipping: display the fees or the free shipping threshold on the product page, in the short description or a reusable block.
- Structured data: WooCommerce outputs
ProductandOffermarkup. If you add Yoast SEO, Rank Math or a dedicated plugin, check that only one set of markup is output.
Shopify
Versions Shopify admin, all plans, November 2026.
- Taxes included: in
Settings > Taxes and duties, choose to include taxes in prices for your consumer markets; the exact label depends on the market. - Availability per variant: track stock for each variant and decide whether to allow selling when out of stock. In the theme, display the status next to each option value:
{% for variant in product.variants %}
<li>{{ variant.title }}: {{ variant.price | money_with_currency }}
{% if variant.available %}in stock{% else %}sold out{% endif %}
</li>
{% endfor %}
- Unit price: fill it in on the product page when it applies; recent themes display it.
- Strikethrough price: use the variant's “Compare-at price” field, and apply the lowest-previous-price rule.
- Shipping: add a text block or an app block to the product template for the cost and the lead time.
PrestaShop
Versions PrestaShop 8 and 9.
- Prices including tax: in
Customers > Groups, edit each consumer group and set the price display method to tax included. - Stock: in
Shop Parameters > Product Settings, enable the display of available quantities and the label for out-of-stock products; manage stock per combination inCatalog > Products. - Combinations: enter the price impact of each combination; check on the product page that the displayed price and availability follow the selected combination, and that the URL changes with it.
Magento
Versions Magento Open Source and Adobe Commerce 2.4.
Stores > Configuration > Sales > Tax > Price Display Settings: set catalog price display to “Including Tax”. Enable stock display in Stores > Configuration > Catalog > Inventory > Stock Options (“Display Out of Stock Products”, “Display Products Availability in Stock on Storefront”). For configurable products, check that every out-of-stock option is flagged on the product page.
Laravel
Versions Laravel 11 to 13.
Calculate the displayed price, the marked-up price and the cart total with the same method, so that they never diverge:
final class PrixAffiche
{
public function __construct(private TauxTva $tva) {}
public function ttc(Variante $variante): Money
{
return $variante->prixHt->multiply($this->tva->pour($variante)->multiplicateur());
}
}
In the view, inject the same class for the HTML and for the JSON-LD (@json in the application/ld+json script), and display {{ $variante->disponibilite->libelle() }} for each variant.
Next.js
Versions Next.js 15 and 16 (App Router).
Generate the price, availability and JSON-LD in the product page's server component, from the same source:
export default async function FicheProduit({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;
const produit = await getProduit(slug);
const variante = produit.varianteParDefaut;
const jsonLd = {
'@context': 'https://schema.org',
'@type': 'Product',
name: produit.nom,
offers: {
'@type': 'Offer',
price: variante.prixTtc,
priceCurrency: 'EUR',
availability: variante.stock > 0 ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock',
},
};
return (
<>
<p>{variante.prixTtc.toLocaleString('fr-FR', { style: 'currency', currency: 'EUR' })} incl. VAT</p>
<ul>
{produit.variantes.map((v) => (
<li key={v.id}>{v.libelle}: {v.stock > 0 ? 'in stock' : 'sold out'}</li>
))}
</ul>
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, '\\u003c') }} />
</>
);
}
Avoid loading the price and stock only on the client side after rendering: an agent or a crawler reading the initial HTML would see nothing.
Common mistakes
- Fees revealed at payment: service, booking, cleaning or eco-contribution fees not stated on the product page.
- Prices excluding VAT by default on a consumer site, or prices excluding and including VAT mixed from page to page.
- Availability of the default variant only: the page says “in stock” while the requested size is sold out.
- Price or stock in an image or in a tooltip on hover.
- Prices reserved for signed-in accounts on a consumer site: invisible to agents as well as to search engines.
- Cached markup that announces an old price or
InStockfor a sold-out product. - A strikethrough price without a valid reference: misleading, and liable to penalties.
Frequently asked questions
Why show the final price on the product page for AI agents?
An AI agent comparing offers takes the price displayed on the product page as its reference. If mandatory fees only appear at payment, its comparison is skewed and the user discovers the gap when confirming the purchase, which often leads to abandonment. Displaying as text the price including all taxes, mandatory fees and the shipping cost makes the comparison fair and the purchase predictable.
Should you state the availability of each size or color?
Yes. State as text the status of each variant before selection: in stock, limited quantity, made to order with a lead time, or sold out. Otherwise, an AI agent or a visitor may choose an unavailable option and only find out in the cart. In the code, disable the sold-out option and add the words sold out to its label, and repeat the same availability in the variant's structured data.
Do shipping costs need to appear on the product page?
European consumer law requires informing customers of the total price and shipping costs before they commit. Displaying them on the product page, with the cost, any free shipping threshold and the lead time, avoids unpleasant surprises at payment and lets AI agents compare offers on their real cost. Repeat these values in shippingDetails or in the shipping policy of your structured data.
What happens if the marked-up price differs from the displayed price?
Google may verify product data before showing it and decline to show an inconsistent merchant listing, and Merchant Center may disapprove products whose feed price does not match the page. An AI agent that reads both values no longer knows which one to believe. Generate the displayed price, the markup and the feed from the same source, and purge caches after every price change.
Resources
- Google Search Central: merchant listing structured datadevelopers.google.com
- Google Search Central: product snippet structured datadevelopers.google.com
- Schema.org: Offer and ItemAvailabilityschema.org
- EUR-Lex: Directive 2011/83/EU on consumer rightseur-lex.europa.eu
- EUR-Lex: Directive (EU) 2019/2161 on the better enforcement and modernisation of consumer protection ruleseur-lex.europa.eu
- WooCommerce: tax settingswoocommerce.com
- OpenAI: Introducing ChatGPT agentopenai.com
Updated on
Topic checklist (PDF)