Skip to content
AE DIGITAL
Technical SEOBy 6 min read

Structured data for sale prices: showing offers correctly in Google results

How to mark up full and sale prices in Offer structured data, keep page, schema and Merchant Center feed aligned, and check for errors before and after a promotion.

Article cover: the word “%” next to a glowing icon on a violet space background

How Google shows prices and offers

In search results, a product can appear with its price, availability and, during a promotion, the full price struck through next to the sale price. Google takes this information from two main sources: structured data on the product page and, if you use it, your Google Merchant Center feed. For pages where shoppers can buy, Google talks about merchant listings: this is the result type that can show a strikethrough price, and it requires a price greater than zero.

During Black Friday and sales, the risk is less about missing markup than about markup that is wrong or out of sync: the page says 79 euros, the schema says 99, the feed says 89. In those cases the strikethrough price is not shown and Merchant Center raises warnings or disapprovals. This article focuses on the specific case of offers; for general product schema setup, see our guide to dynamic schema markup for ecommerce.

Offer properties you need to know

Inside Product (or ProductGroup for products with variants), each variant has an Offer. The properties that matter for promotions:

  • price or priceSpecification.price: the price the customer pays now, required;
  • priceCurrency: the ISO 4217 currency code, for example EUR, required alongside the price;
  • availability: a single value, for example https://schema.org/InStock;
  • priceValidUntil: the date until which the price is valid; Google warns that a past date may stop the listing from showing;
  • shippingDetails and hasMerchantReturnPolicy: shipping and returns, covered below.

Full price and sale price in the markup

The active price

The sale price, meaning what the customer pays, goes in price or in a priceSpecification without priceType. Google's documentation is explicit: do not mark the active price with priceType.

The strikethrough price with StrikethroughPrice

The full price goes in a second priceSpecification of type UnitPriceSpecification, with "priceType": "https://schema.org/StrikethroughPrice", the same priceCurrency and the strikethrough value. When two prices are present, the active one automatically becomes the sale price. Google temporarily accepts ListPrice as a priceType value too, but StrikethroughPrice is the value schema.org defines for this purpose. A strikethrough price specification cannot also carry validForMemberTier: if it contains both, it is ignored.

The strikethrough price in the markup must be the one shown on the page. Under the EU Omnibus rules, the reference price you strike through in a price reduction is normally the lowest price applied in the previous 30 days: if your theme shows that value, the schema must carry that value, not the list price. Details are in our guide to strikethrough prices and the Omnibus directive.

Start and end dates

For a promotion with known dates, you can mark the start with validFrom and the end with validThrough or priceValidUntil. The practical problem is that many themes do not update these fields: the promotion ends, the page goes back to full price, but the schema keeps the old dates or a strikethrough price that no longer exists.

Consistency between page, schema and feed

If you use Merchant Center, the feed must tell the same story. Google asks you to keep sending the full price in the price attribute and put the discount in sale_price, with sale_price_effective_date for the promotion window: without dates, the sale price applies immediately. The sale price must match the page and checkout, and it must be lower than the full price. Discounts that require a code do not belong in sale_price: handle them as promotions.

With automatic item updates on, Merchant Center can replace the feed price with the one read from the page markup. It is a safety net, not a substitute for an up-to-date feed: Google treats price mismatches as serious errors. If you already have some, our guide to disapproved products in Merchant Center explains how to read them.

On Shopify, the structured_data Liquid filter outputs a Product or ProductGroup with offers and price; the documentation example does not include the compare-at price. Before the promotion, open the source of a discounted product page and check what is actually output, because the theme, SEO apps and review apps can each generate their own blocks, sometimes duplicated.

Shipping and returns in the markup

Google recommends declaring your shipping and return policies once, at Organization level, and using shippingDetails and hasMerchantReturnPolicy on the offer only for exceptions. During promotions, exceptions are common: temporary free shipping, extended Christmas return windows. If you change them on the page, change them in the markup too and, if you use Merchant Center, in the account settings, which take precedence for shipping and returns.

Errors and warnings in Search Console

In Search Console, the Merchant listings report checks Offer markup on pages where shoppers can buy, while the Product snippets report covers other product pages. The errors we see most often during promotions:

  • zero or missing price on sold-out or not-yet-priced variants;
  • priceCurrency missing in one of the two price specifications;
  • priceValidUntil left on a past date;
  • two Product blocks on the same page with different prices, one from the theme and one from an app;
  • a strikethrough price in the schema equal to or lower than the active price.

The report is not real-time: after a fix, use URL Inspection on the affected page to see the current version.

Checking before and after the promotion

A check sequence you can repeat for every promotion:

  1. a few days before, pick five sample products, with and without variants, and run them through the Rich Results Test;
  2. on launch day, check that the page price, price in the schema and sale_price in the feed match, and that the strikethrough price is the one shown to customers;
  3. during the promotion, review Merchant Center diagnostics daily for price mismatches;
  4. the day after it ends, check that the strikethrough price is gone from page, schema and feed, and that priceValidUntil does not point to a past date;
  5. the following week, check in Search Console that valid items have not dropped.

If your theme outputs duplicate markup or does not handle strikethrough prices, fix it once in the template, not product by product. For the full picture on your theme, see our Shopify technical SEO guide, and if you want us to sort out markup and feed before the sales, we can do it as part of a Shopify store setup.

Frequently asked questions

How do I mark up a strikethrough price in structured data?

Add a second priceSpecification of type UnitPriceSpecification to the Offer, with priceType set to https://schema.org/StrikethroughPrice and the full price. The active price stays in price or the first priceSpecification, without priceType: according to Google, with two prices the active one automatically becomes the sale price.

Does Google always show the strikethrough price if it is in the markup?

No. Markup makes the page eligible, but display depends on Google and other signals, including Merchant Center data. If page, markup and feed do not match, the strikethrough price is more likely to be ignored or the product to receive a warning.

Does my Shopify theme already include the strikethrough price in structured data?

It depends on the theme. Shopify's structured_data Liquid filter outputs Product or ProductGroup with offers and price, but the documentation example does not include the compare-at price. Check your product page output with the Rich Results Test.

What happens if the feed price differs from the page price?

Merchant Center flags a price mismatch. With automatic item updates on, it can replace the feed price with the one read from the page, but Google treats these mismatches as serious errors that can lead to disapproved products and, if repeated, account issues.

Sources

  1. Merchant listing (Product, Offer) structured data — Google Search Central
  2. Sale price [sale_price] — Google Merchant Center Help
  3. How to fix: Automatic updates: Mismatched price — Google Merchant Center Help
  4. PriceTypeEnumeration — Schema.org
  5. Liquid filter: structured_data — Shopify Developers

Related articles

Tell us what isn't working.

We reply within one business day with a first opinion and, if it makes sense, a quote.

Write to us