support@schemaclinic.com Free JSON-LD checker Free schema generator Shopify App Store
Schema guide

What is Offer schema?

Offer is the part of Product markup that carries the price and stock. On a Shopify store it is also where most of the errors that matter turn up. Here is what it contains and how to get it right.

Short answer: Offer is the schema.org type that describes the terms on which something is sold: the price, the currency, whether it is in stock and in what condition. On a product page it sits inside the Product as the value of offers. For Google's merchant listings, an Offer needs a price above zero and a currency; availability is strongly recommended. On Shopify, each variant you sell is usually one Offer.

The main Offer properties

PropertyExampleNotes
price45.00A number, no currency symbol, full stop for decimals
priceCurrency"GBP"Three-letter ISO 4217 code
availability"https://schema.org/InStock"Also OutOfStock, PreOrder, BackOrder and others
itemCondition"https://schema.org/NewCondition"Also UsedCondition, RefurbishedCondition, DamagedCondition
urlThe product or variant URLUseful when each variant has its own URL
priceValidUntil"2027-06-30"Optional. Never a date in the past
sku, gtinVariant identifiersCan sit on the Offer or the Product
shippingDetails, hasMerchantReturnPolicyNested objectsOptional; can also be set in Search Console or Merchant Center

Availability and condition values are full schema.org URLs. Writing "InStock" on its own is widely understood, but the full URL is the documented form. Google's merchant listing documentation sets out which properties are required and recommended.

How Shopify variants map to Offers

One Product block can hold several Offers, one per variant, as an array. In Liquid that means looping over the variants. Shopify stores prices in the smallest currency unit (pence or cents), so divide by 100:

"offers": [
  {%- for variant in product.variants -%}
  {
    "@type": "Offer",
    "sku": {{ variant.sku | json }},
    "price": {{ variant.price | divided_by: 100.0 | json }},
    "priceCurrency": {{ cart.currency.iso_code | json }},
    "availability": "https://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}",
    "url": {{ request.origin | append: variant.url | json }}
  }{% unless forloop.last %},{% endunless %}
  {%- endfor -%}
]

Note that variant.available is also true when a variant is set to continue selling when out of stock, so think about whether BackOrder describes those better. Google also supports describing variants with ProductGroup and hasVariant, where each variant is its own Product with its own Offer; see product variants and ProductGroup.

What about AggregateOffer, with a lowPrice and highPrice? Google's documentation describes it for a product offered by several sellers, and merchant listings need a plain Offer, so for a store selling its own products, use Offer.

Sale prices and compare-at prices

The price in your Offer should be the price a shopper pays now, which on a Shopify sale is the variant's price, not its compare-at price. Putting the compare-at price in price breaks Google's rule that markup must match what the page shows.

If you want Google to understand that the product is on sale, its merchant listing documentation describes adding the original price as a priceSpecification of type UnitPriceSpecification with priceType set to https://schema.org/StrikethroughPrice, alongside the current price. Only do this when the original price is shown on the page.

Common Offer mistakes on Shopify

  • Price in pence. 4500 instead of 45.00, from using a Liquid price without dividing by 100.
  • Currency symbols or formatted prices. "£45" or "1,250.00". Use a plain number and put the currency in priceCurrency. Liquid's money filters add formatting, so avoid them for schema.
  • Price of zero. Merchant listings require a price above zero. Free gifts or sample products with a zero price will show an error.
  • Availability that does not match the selected variant, or a block that says InStock for a product that is sold out.
  • A priceValidUntil date in the past. Google says the listing may not display. See missing field priceValidUntil.
  • Two Offers for the same variant from two sources, such as the theme and an app, with different prices. See duplicate Product schema.

Schema Clinic's audit validates Offers against Google's documentation, including price, currency, availability and priceValidUntil, and shows which source each Product block came from. On Pro ($19.99/month) its generator outputs Product with offers carrying price, currency, availability, priceValidUntil, price specification and seller. Starter is $9.99/month; there is no free plan or trial. For the whole Product block, see our Product schema guide.

Questions people ask

Is Offer schema required for Google Shopping results?
For merchant listings, which include Google's shopping results, yes. The Product needs an Offer with a price above zero and a currency. Product snippets accept an Offer, a review or an aggregateRating.
Should the price include the currency symbol?
No. Use a plain number such as 45.00 in price and the three-letter code, such as GBP, in priceCurrency.
Should I use one Offer or one per variant?
If variants have different prices or stock, list one Offer per variant, or use ProductGroup with a Product per variant. One Offer for the default variant is acceptable for a product with a single option.
What availability value should a pre-order product use?
PreOrder, written as https://schema.org/PreOrder, if the product can be ordered before it is released. Use BackOrder for items that are temporarily out of stock but can still be ordered.
Is priceValidUntil required?
No. Google recommends it but products stay eligible without it. Never output a date that has already passed.

See what Google sees on your store

Run an audit in minutes. Every schema block, every error and duplicate, with its source.

Install Schema Clinic