Guides › shippingDetails
Shopify "Missing field shippingDetails": what it means and how to fix it
If Search Console's Merchant listings report shows Missing field "shippingDetails" or Missing field "hasMerchantReturnPolicy" on your Shopify product URLs, your product pages have Product markup with no shipping or return information in it. That's common. Shopify's structured_data Liquid filter, which current Shopify-built themes use, outputs name, brand, description, image and offers (price, currency, availability, URL). Its own documented output example has no shipping or return fields.
shippingDetails and hasMerchantReturnPolicy as recommended (not required) properties of Offer in its merchant listing documentation. They're non-critical warnings, but they carry the shipping cost and return window that Google can show next to your product.Step 1: decide where your shipping and return data should live
Google reads shipping and return information from several places and, when they overlap, uses this order of precedence (strongest first), per its shipping policy and return policy docs:
- Product-level data in Merchant Center (feed attributes / API)
- Account settings via the Content API for Shopping
- Settings in Merchant Center or Search Console
- Product-level markup on your page (
shippingDetails/hasMerchantReturnPolicyunderOffer) - Store-level markup (
hasShippingService/hasMerchantReturnPolicyunderOrganization)
So if your shipping and returns are already set correctly in Merchant Center, Google uses those for Shopping, and the markup warning matters less. If you don't use Merchant Center, or want your organic product results to carry the information as well, add markup. Whichever you choose, every source has to say the same thing as your published policy pages.
Step 2 (recommended): one store-level block in theme.liquid
Google recommends that a standard return policy covering most products be nested under Organization with hasMerchantReturnPolicy, and that a standard shipping policy use Organization → hasShippingService → ShippingService. Paste this just before </head> in layout/theme.liquid on a duplicate theme, and change the country, rate, days and fees to match your policy:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": {{ shop.name | json }},
"url": {{ shop.url | json }},
"hasMerchantReturnPolicy": {
"@type": "MerchantReturnPolicy",
"applicableCountry": "US",
"returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
"merchantReturnDays": 30,
"returnMethod": "https://schema.org/ReturnByMail",
"returnFees": "https://schema.org/ReturnFeesCustomerResponsibility"
},
"hasShippingService": {
"@type": "ShippingService",
"shippingConditions": {
"@type": "ShippingConditions",
"shippingDestination": { "@type": "DefinedRegion", "addressCountry": "US" },
"shippingRate": { "@type": "MonetaryAmount", "value": 5.99, "currency": "USD" },
"transitTime": { "@type": "ServicePeriod",
"duration": { "@type": "QuantitativeValue", "minValue": 2, "maxValue": 5, "unitCode": "DAY" } }
},
"handlingTime": { "@type": "ServicePeriod",
"duration": { "@type": "QuantitativeValue", "minValue": 0, "maxValue": 2, "unitCode": "DAY" } }
}
}
</script>
Step 3 (optional): per-offer shippingDetails
Use product-level markup only to override the store policy, for example on oversize items. Inside each Offer:
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingRate": { "@type": "MonetaryAmount", "value": 0, "currency": "USD" },
"shippingDestination": { "@type": "DefinedRegion", "addressCountry": "US" },
"deliveryTime": {
"@type": "ShippingDeliveryTime",
"handlingTime": { "@type": "QuantitativeValue", "minValue": 0, "maxValue": 1, "unitCode": "DAY" },
"transitTime": { "@type": "QuantitativeValue", "minValue": 2, "maxValue": 5, "unitCode": "DAY" }
}
}
Google requires minValue, maxValue and unitCode (DAY or d) on each QuantitativeValue for handling and transit times. With returnPolicyCategory set to MerchantReturnFiniteReturnWindow, merchantReturnDays is required.
Step 4: validate, then ask Google to recrawl
- Paste one product URL from the duplicate theme's preview into Google's Rich Results Test. Check that a single Product item appears with no critical errors.
- Publish, then use URL Inspection in Search Console to request indexing for a few product URLs.
- Use the Validate fix button in the Merchant listings report.
Common mistakes we see on Shopify
- Two Product blocks. The theme's block and a reviews or SEO app's block both describe the product, and one has a stale price. Keep one source.
- Hard-coded
priceValidUntildates in the past. Google says a listing may not display when this date has passed. - Broken JSON. A Liquid error message printed inside the JSON-LD (for example when a product has no image), or an unquoted barcode value. Google ignores the whole block.
- Markup that contradicts the policy page, such as "free returns" in markup and "buyer pays return shipping" on the page.
Check your own store in 20 seconds
FeedReady reads your live Shopify product pages and lists exactly which of these fields are missing, broken or duplicated, then hands you a pre-filled Liquid patch.