How to fix rich snippet errors in Dawn theme on Google Search Console?

Topic summary

Users are encountering rich snippet errors in Google Search Console when using Shopify’s Dawn theme. The primary issue involves a missing “priceValidUntil” field in product structured data.

Reported Problems:

  • Missing field “priceValidUntil” in offers/hasVariant.offers
  • Product availability-related errors

Proposed Solutions:

  • One user attempted implementing code from an external article targeting the main-product.liquid file but was unsuccessful
  • A suggested fix involves adding microdata code from a Shopify microdata guide
  • A working solution for Dawn 15.2.0 was shared, requiring replacement of specific markup code in main-product.liquid (exact code snippets provided)

Status: The discussion remains open with multiple approaches suggested. One user confirmed successfully resolving the priceValidUntil error on Dawn 15.2.0 using a specific code replacement, though broader validation across different scenarios hasn’t been established.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hi, apparently the theme Dawn that we’re using, causes rich snippet error messages in Google Search Console.

This is a common problem I’ve come to learn. I tried installing this snippet of code to main-product.liquid as suggested in this article but can’t get it to work. Any suggestions on what to do?

https://joeybabcock.me/blog/code/shopify-fix-missing-field-pricevaliduntil-in-offers/

I’m having issues with Dawn as well relating to product availability.

Try this code, it may help.

https://feedarmy.com/kb/shopify-microdata-for-google-shopping/

I was able to resolve the Missing field “priceValidUntil” (in “hasVariant.offers”) issue on Dawn 15.2.0

Open main-product.liquid

Replace:


With: