-
I have problem in the search console. It’s missing
Missing field “hasMerchantReturnPolicy” (in “offers”) and Missing field “shippingDetails” (in “offers”)
-
Hello,
I apologize for the issue you are facing with missing fields "hasMerchantReturnPolicy" and "shippingDetails" in the "offers" section in the Search Console. These warnings occur when specific fields are not configured correctly in your Schema markup.
To resolve the missing field "hasMerchantReturnPolicy" and "shippingDetails" warnings, you need to update the Schema data for your products. Here’s how you can do it:
-
hasMerchantReturnPolicy: To add the "hasMerchantReturnPolicy" field, you can follow the steps outlined in our knowledge base article here. Ensure that you have the necessary details configured in your WooCommerce product settings.
-
shippingDetails: For the "shippingDetails" field, you need to provide shipping information for your products. Make sure that the shipping details are correctly set up in your WooCommerce product settings.
If you continue to experience issues after following these steps, please feel free to reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for bringing this concern to our attention. We are here to help you resolve these missing field warnings in the Search Console.
Best regards.
Sources:
Google Search Console Missing Field Warning » Rank Math
Resolving Rank Math Schema Markup Related IssuesHello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Since Google has recently started reporting warnings for these fields, this feature is still not available in the plugin, the only possible way would be to edit the following filter with the appropriate data for these properties so it gets included in the Product Schema as well: https://rankmath.com/kb/filters-hooks-api-developer/#change-post-schema-data
We have created an example filter that would help add this data and it assumes that the refund policy is only applicable to the USA and that it has a 30-day refund period.
The shipping rate section also assumes a flat fee of 5$ to ship within the United States.
This would need to be changed according to the website specifications but it should be a good starting point:
add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) { // Return policy $entity['offers']['hasMerchantReturnPolicy']['@type'] = 'MerchantReturnPolicy'; $entity['offers']['hasMerchantReturnPolicy']['applicableCountry'] = 'US'; $entity['offers']['hasMerchantReturnPolicy']['returnPolicyCategory'] = 'https://schema.org/MerchantReturnFiniteReturnWindow'; $entity['offers']['hasMerchantReturnPolicy']['merchantReturnDays'] = 30; $entity['offers']['hasMerchantReturnPolicy']['returnMethod'] = 'https://schema.org/ReturnByMail'; $entity['offers']['hasMerchantReturnPolicy']['returnFees'] = 'https://schema.org/FreeReturn'; // Shipping details $entity['offers']['shippingDetails']['@type'] = 'OfferShippingDetails'; $entity['offers']['shippingDetails']['shippingRate']['@type'] = 'MonetaryAmount'; $entity['offers']['shippingDetails']['shippingRate']['value'] = 5; $entity['offers']['shippingDetails']['shippingRate']['currency'] = 'USD'; $entity['offers']['shippingDetails']['shippingDestination']['@type'] = 'DefinedRegion'; $entity['offers']['shippingDetails']['shippingDestination']['addressCountry'] = 'US'; return $entity; });
Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes. Looking forward to helping you.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
-
The ticket ‘problem in the search console’ is closed to new replies.