Search Console fix

Missing field “hasMerchantReturnPolicy” (in “offers”) on Shopify

What you’ll need

  • Your shipping and return details (costs, times, return window)

  • A duplicate of your theme to test on

    How to get this: A duplicate of your theme to test on
    1. Online Store › Themes › … on your theme › Duplicate.
    2. Make the change on the copy, preview it, and publish only when it works.

    Step-by-step guide (opens in a new tab)

  • The theme code editor (to paste a snippet)

    How to get this: The theme code editor
    1. On the copy of your theme: … › Edit code.
    2. Hover the snippets folder, click New File…, name it as the tool says, paste and Save.

    Step-by-step guide (opens in a new tab)

Generate the fix

What Google wants

Google’s merchant listings read a return policy from four places, strongest first: the Content API, your settings in Merchant Center or Search Console, a policy on the product’s offer, then a store-wide policy on your Organization markup. The warning is about the third: the offer has no hasMerchantReturnPolicy.

  • Required inside the policy: applicableCountry (two-letter codes, up to 50) and returnPolicyCategory.
  • returnPolicyCategory is MerchantReturnFiniteReturnWindow (then merchantReturnDays is required), MerchantReturnUnlimitedWindow or MerchantReturnNotPermitted.
  • returnFees is FreeReturn, ReturnFeesCustomerResponsibility, or ReturnShippingFees with a returnShippingFeesAmount above 0.
  • returnMethod is ReturnByMail, ReturnInStore or ReturnAtKiosk.
A return policy on an offer
"hasMerchantReturnPolicy": {
  "@type": "MerchantReturnPolicy",
  "applicableCountry": "US",
  "returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
  "merchantReturnDays": 30,
  "returnMethod": "https://schema.org/ReturnByMail",
  "returnFees": "https://schema.org/FreeReturn"
}

Store-wide policy vs per offer

Google’s docs recommend one store-wide policy under Organization (hasMerchantReturnPolicy on OnlineStore). In Google’s Rich Results Test, with only the store-wide block the merchant listing still shows Missing field "hasMerchantReturnPolicy" (optional) (in "offers"). With the policy on the offer, the warning is gone.

So: the store-wide block tells Google your policy; the per-offer policy is what makes the warning go away. The tool gives you both.

Install the fix

  1. Open the Product Schema Fixer, fill in your shipping zones and return policy, and download est-product-schema.liquid.
  2. In Shopify go to Online Store › Themes, click ⋯ on your theme and choose Duplicate. Work on the copy.
  3. On the copy choose ⋯ › Edit code. Under Snippets click Add a new snippet, name it est-product-schema and paste the file.
  4. Open sections/product-information.liquid (Horizon) or sections/main-product.liquid (Dawn). Replace the <script type="application/ld+json"> block that contains structured_data with {% render 'est-product-schema', product: closest.product %} (Dawn: product: product).
  5. Preview the copy, open a product page, view the page source and paste it into the checker. When it shows no warnings, publish the copy.
  6. In Search Console open the Merchant listings report and click Validate fix.

The no-code option

If you’d rather not edit the theme, add your return policy in Search Console (Settings › Shopping › Shipping and returns) or Merchant Center. Google uses those settings ahead of any markup. The report can keep listing the markup warning, which is harmless.

More guides

Based on Google’s merchant listing structured data docs, merchant return policy docs and merchant shipping policy docs.