How to Add MerchantReturnPolicy & OfferShippingDetails JSON-LD in Shopify Liquid
Copy-paste Liquid schema snippet eliminating Google Shopping and AI agent policy warnings across every Shopify product page.
The Missing Offer Policy Block in Default Shopify Themes
Even high-performing Shopify Plus themes typically output basic Product name, image, price, and availability inside JSON-LD — while omitting returnPolicyCountry, merchantReturnDays, returnFees, and shippingRate inside Offer.
Adding a dedicated Liquid snippet right inside templates/product.liquid or snippets/meta-tags.liquid resolves policy ambiguity deterministically across your entire catalog.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "MerchantReturnPolicy",
"@id": "{{ shop.url }}/#return-policy",
"applicableCountry": "US",
"returnPolicyCategory": "https://schema.org/MerchantReturnFiniteReturnWindow",
"merchantReturnDays": 30,
"returnMethod": "https://schema.org/ReturnByMail",
"returnFees": "https://schema.org/FreeReturn"
}
</script>Verify Live Rendering Instead of Assuming Theme App Blocks Work
Theme upgrades and third-party SEO apps frequently overwrite custom snippets silently. After pasting any Liquid JSON-LD block, verify the rendered HTML directly with CartSpec so hasReturnPolicy and hasShippingDetails both evaluate green in production.
Frequently Asked Questions
Can I paste the exact Liquid snippet CartSpec generates for my domain?
Yes. Running your store URL through cartspec.vespori.com generates a custom JSON-LD snippet pre-filled with your real storefront origin and Organization name.
Does MerchantReturnPolicy conflict with Google & YouTube app structured data?
No — using a clean top-level @id reference works cleanly alongside existing theme Product JSON-LD blocks.