Missing field "shippingDetails" (in "offers")

Any one help how to solve this issue from merchant center?

1 Like

I just got the same problem. I think it is to do with merchant centre?

1 Like

Yes, same thing here too. Any ideas anyone?

You’ll likely have to add or edit structured data in your product.liquid code. More information here - https://developers.google.com/search/docs/appearance/structured-data/product

This fixed the issue for me.

1 Like

Where did you put the code off the link you posted? I tried to add it to the product.json page, I even tried custom meta fields.

The place to add this will be in product.liquid under ‘offers’.

The liquid file outputs information about the product being viewed, no matter which product is being viewed. Google looks through this data to understand the variables about each product and if a variable is missing or doesn’t translate exactly between Shopify and Google, you get the error.

The error message Missing Field “ShippingDetails” (In “Offers”) is literally telling us that in the product.liquid file, under ‘offers’ there are no shipping details defined.

Please send me a private message if you’d like more help.

1 Like

I don’t seem to have a product.liquid but I do have a main-product.liquid so I assumed it was in there.

I added the following code in the offers code and google is still saying there’s a problem when I hit validate fix.


The only thing I have changed is the Shipping details and returns policy.

Anyone still needing help with this issue please private message me. Thanks!

1 Like

Hi,

I’m having the same issue for about a month now…cant fix it.

Can you please help me?

Thanks in advance!

It was a bit of a search for me, but for my template the json-ld was specified in

microdata-schema.liquid

I ended up adding the following to the script

“shippingDetails”: {
“@type”: “ShippingDetails”,
“shippingRate”: {
“@type”: “MonetaryAmount”,
“value”: “{% if cart.total_price < 2000 %}3.99{% else %}0{% endif %}”, // 2000 is in cents, which is equivalent to 20 euros
“currency”: “{{ cart.currency.iso_code }}”
},
“deliveryTime”: {
“@type”: “ShippingDeliveryTime”,
“businessDays”: {
“@type”: “BusinessDays”,
“dayOfWeek”: [
“http://schema.org/Monday”,
“http://schema.org/Tuesday”,
“http://schema.org/Wednesday”,
“http://schema.org/Thursday”,
“http://schema.org/Friday”
// Add or remove days as per your shipping days
],
“cutoffTime”: “15:00:00Z” // Adjust based on your operations
}
}

I’m not really sure how to send this message to you privately, so I’m just gonna reply here and hope that you contact me directly if needed. :sweat_smile:

I received these google errors and would love some assistance in fixing 2 of the 3 (Just waiting on validation for the “brand” fix):

  1. Missing field “hasMerchantReturnPolicy” (in “offers”) - My return policy is 30 days from delivery
  2. Missing field “shippingDetails” (in “offers”) - Free domestic shipping over $100USD & I ship M-F 8-3pm US pacific time
  3. Invalid object type for field “brand” - I’ve already updated this line of code from the word “Organization” to “Brand” and I’m waiting on validation.

As I mentioned, I updated the brand to “Brand”, however I’m not 100% sure on what code and where I’m supposed to insert the additional code. Would you be able to help me out? Thank you in advance


Hi there! :waving_hand:

I’ve dealt with the “Missing field ‘shippingDetails’” issue before, and I can help you resolve it. This error typically occurs when the shippingDetails field isn’t properly included in your product’s structured data.

To fix this, you’ll need to add the structured data code to your product JSON file where your schema.org data is located:

I’ve written an article that provides more details on how to address this specific problem. If you’d like to check it out, you can find it here:

![Missing field "shippingDetails" (in "offers") Issue passed|1920x827](upload://wgQ09HFF3GDcC4Rp0c60Kw6ZYf0.jpeg) ![Missing field "shippingDetails" (in "offers") Issue passed|1920x827](upload://ufjSN2OF5PkgNjq2dwiWb4Y9CCJ.jpeg) ![Looking good Missing field "shippingDetails" (in "offers") Issue passed|1920x827](upload://ejgAhOFVxaVp0oRGmks2CQHNxP4.jpeg)

Sorry, but how it this supposed to work on the product page?

As far as the crawler is concerned - the cart.total_price will always be 0

Am i missing something?