Either “offers”, “review”, or “aggregateRating”

#48941
  • Resolved Bert Luxing
    Rank Math free

    Hi,

    I get this error in Google Search Console. I know this has been answered before but I couldnt find anything to answer my specific circumstance.

    I understand that I need to put an item on sale or have reviews. However, I am using a plugin that pulls reviews from amazon instead of using the standard woocommerce reviews.

    I contacted suport of the plugin but they could not help me. So I am wondering if you know any workaround for this error. I don’t want to put any of the products on sale and I don’t want to use the in-built woocommerce review system.

    Is it possible to get rid of this error. And if not, does it really matter that I am getting the error?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math today.

    If you don’t wish to show your schema data, you can set the product schema type to none in Rank math> Titles& Meta> Products

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi,

    Thanks for your reply.

    Its not that I don’t want to show it. I think showing it is a good for SEO right?

    Im just wondering if there is a workaround for this error.

    Alberto
    Rank Math business

    Hello,

    Rank Math takes the schema data from your product pages automatically and turns it into Schema-ready content. Likewise, the aggregateRating and review fields are taken from your actual product reviews that your buyers/customers leave on your products.

    If you don’t have any reviews yet, that is going to show up as a warning in the schema testing tool. That’s because Google will actually look for those fields.

    Please acquire some reviews and ratings to get rid of the aggregateRating and review warnings.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi,

    Thanks for your reply. I do understand that I need reviews to get rid of that warning (refer to my original post).

    But I specifically want to know if there is a way to do it without using the woo commerce reviews. I use a plugin that scrapes the reviews from amazon, but I guess that does not populate into the schema.

    Maybe there is some Rank Math feature or code I can add to manually add the star rating in the schema?

    Hello,

    Thank you for contacting Rank Math today.

    It is possible to extend the Rank Math product schema and incorporate the reviews from the third party plugin. I can suggest that you reach out to their team and check if they have a function that you can use to get the reviews assigned to a product. With this function, you can then pass this value to the Rank Math schema using the following filter on your theme’s functions.php file:

    /**
     * Filter to Modify Products schema
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    	
    	$entity['aggregateRating']['ratingValue'] = '';
    	$entity['aggregateRating']['reviewCount'] = '';
    	$entity['review']['reviewRating']['ratingValue'] = '';
    	$entity['review']['reviewRating']['bestRating'] = '';
    	$entity['review']['author']['name'] = '';
        return $entity;
    });

    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.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Either “offers”, “review”, or “aggregateRating”’ is closed to new replies.