To address the errors you are encountering on your product pages related to "shippingDetails" and "hasMerchantReturnPolicy," follow these steps to ensure your structured data is correctly formatted:
1. Check Existing Structured Data
First, review the existing structured data for each of the affected pages. You can do this by using the browser's developer tools or checking the page source. Look specifically for the JSON-LD or Microdata related to the product offers.
2. Update the Structured Data
You will want to add both the shippingDetails and hasMerchantReturnPolicy fields to the structured data for your products. Below is a sample JSON-LD structure that includes these fields.
Example for A2 Cultured Cow Ghee:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "A2 Cultured Cow Ghee",
"image": "https://purelymoo.com/path-to-your-image.jpg",
"description": "Description of A2 Cultured Cow Ghee.",
"sku": "A2-Cultured-Cow-Ghee",
"offers": {
"@type": "Offer",
"url": "https://purelymoo.com/products/a2-cultured-buffalo-ghee-copy",
"priceCurrency": "USD",
"price": "19.99",
"itemCondition": "http://schema.org/NewCondition",
"availability": "http://schema.org/InStock",
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingOption": {
"@type": "ShippingMethod",
"name": "Standard Shipping",
"price": "5.00",
"priceCurrency": "USD"
}
},
"hasMerchantReturnPolicy": {
"@type": "MerchantReturnPolicy",
"name": "30-day Return Policy",
"url": "https://purelymoo.com/return-policy",
"returnPolicyCategory": "http://schema.org/MerchantReturnFiniteReturnPolicy",
"returnFees": "http://schema.org/FreeReturn",
"returnMethod": "http://schema.org/ByMail"
}
}
}
</script>
3. Modify Each Affected Product Page
Repeat this structure for each of the products listed in the errors:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "A2 Bilona Cow Ghee",
"image": "https://purelymoo.com/path-to-your-image.jpg",
"description": "Description of A2 Bilona Cow Ghee.",
"sku": "A2-Bilona-Cow-Ghee-250ml",
"offers": {
"@type": "Offer",
"url": "https://purelymoo.com/products/a2-bilona-cow-ghee-250ml",
"priceCurrency": "USD",
"price": "24.99",
"itemCondition": "http://schema.org/NewCondition",
"availability": "http://schema.org/InStock",
"shippingDetails": {
"@type": "OfferShippingDetails",
"shippingOption": {
"@type": "ShippingMethod",
"name": "Standard Shipping",
"price": "5.00",
"priceCurrency": "USD"
}
},
"hasMerchantReturnPolicy": {
"@type": "MerchantReturnPolicy",
"name": "30-day Return Policy",
"url": "https://purelymoo.com/return-policy",
"returnPolicyCategory": "http://schema.org/MerchantReturnFiniteReturnPolicy",
"returnFees": "http://schema.org/FreeReturn",
"returnMethod": "http://schema.org/ByMail"
}
}
}
Make sure to adjust the image URLs, descriptions, prices, and other attributes accordingly for each product page.
4. Test Your Changes
Once you’ve made the updates:
-
Validate the Structured Data: Use the Google Rich Results Test or the Schema Markup Validator to ensure your structured data is correct.
-
Monitor Google Search Console: After you've validated the structured data, submit the updated product pages in Google Search Console to request re-crawling. This might help resolve the errors faster.
5. Keep Your Content Up-to-Date
It's essential to keep your product data and structured data up to date to avoid errors in the future. Regularly check your structured data and ensure it reflects any changes in pricing, shipping, or return policies.
If you follow these steps, it should resolve the issues related to the missing fields. If you continue to experience problems, you may want to consult with a developer or an SEO expert who specializes in structured data.