-
Hello ,
On my woo i get some errors.
1 of missing fields review
2 missing field aggregaterating
3 missing field hasmerchantreturnpolicy
4 missing field shippingdetails
5 invalid country code
Reviews and ratings are enabled on my woo.
i have shipping details configured.
Why i get these errors ?Thank you.
-
Hello,
We apologize for the inconvenience you’re experiencing with the errors on your WooCommerce website. The missing fields and errors you’re encountering are related to the structured data on your website, which is used by search engines to understand and display your content in rich results.
The missing fields such as review, aggregateRating, hasMerchantReturnPolicy, and shippingDetails are part of the structured data that helps search engines understand your products better. The invalid country code error is likely related to the shipping details you’ve configured.
To resolve these issues, you can follow the steps outlined in our knowledgebase articles to ensure that the necessary structured data is present on your website. Specifically, you can use Rank Math to add aggregate ratings and reviews to your products, configure merchant return policies, and ensure that shipping details are correctly set up.
If you have any further questions or need assistance with resolving these errors, please feel free to reply to this ticket, and a member of our support team will be more than happy to help you.
Thank you for reaching out to us!
Sources:
How to Fix Aggregate Rating Error » Rank Math
Google Search Console Missing Field Warning » Rank Math
How to Use Product Schema for WooCommerce Products » Rank MathHello ,
I got this from Google search console. How to add these fields to my products automatically?
I use the product snippet.Top critical issues*
Either “offers”, “review”, or “aggregateRating” should be specified
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to this issue.
For initial troubleshooting please follow the steps in this guide:https://rankmath.com/kb/either-offers-review-or-aggregaterating-should-be-specified/#offers-review-aggregateRating
Let us know how this goes. Please let us know if you have further questions or concerns.
Thank you.
Hello ,
It didnt help that much.
I tested with google rich snippet and i get some errors.
i will attach photos.Thank you.
Hello,
Regarding the warnings, the reviews are picked up from the actual WooCommerce product reviews that your buyers/customers leave on your products and will clear the warning after that. Here’s a link for more information:
https://rankmath.com/kb/aggregate-rating-error/#woocommerceTo fix the Country code warning, head over to Rank Math > Titles & Meta > Local SEO > Address and update the country
Greece
to GR onlyLastly, the
hasMerchantReturnPolicy
andshippingDetails
warnings are not available in our plugin.Since 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; });
If you’re not sure how to add this code, you can follow this guide:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Hope that helps.
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 ‘Rating and Reviews’ is closed to new replies.