Either “offers”, “review”, or “aggregateRating” should be specified

#112678
  • Hello, since switching from YoastSEO to RankMath I get an error in google search console “Either “offers”, “review”, or “aggregateRating” should be specified. But I get it just for variable products where all variantions are out of stock. Single Products which are out of stock work fine. Do you have any ideas?

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    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.

    Since it’s happening when all variations are showing, if one of the products 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.

    You can fix the SKU and availability issue easily as well:

    To fix the brand warning, head over to WordPress Dashboard > Rank Math > General Settings > WooCommerce and choose from any of the available fields to use as your product’s brands.

    Brand Value

    If you want to use a custom value for your Brands, you can do that by using the following code in your theme’s functions.php file:

    // Add Brand for Products.
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    $entity['brand'] = 'Rank Math;
    return $entity;
    });

    Replace the “Rank Math” text with your actual brand name then run your website through the Structured Data Testing tool once again.

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

    Thank you for the replay. But I get google errors and not warnings. In my shop I neither have any review.

    How is it possible that a I get an error in google just for the products where all variations are out of stock. If a single product is out of stock the error does not appear.

    Please get back to me soon.

    Hello,

    I’m sorry for the delay and for any inconvenience this issue may have caused you.

    Since that page is a Category archive, the Schema needs to be disabled there. And as per Google’s guidelines, product Schema is only needed on actual products.

    You can go to Rank Math > Titles & Meta > Categories and enable the “Remove Snippet Data”:
    https://i.rankmath.com/utOHUl

    Hope that helps. Thank you and looking forward to your update.

    Hello, I already updated the “remove Snippet Data”.

    The issue treats product variations an not categories.

    Hello,

    Sorry for the delay.

    Could you provide the URL or the link you are referring to for us to further investigate?

    You can also edit the first post on this ticket and post the link in the Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section.

    Thank you and we really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello I attached two links. In the first one I get a google error and the second one is fine. You can doublecheck that with google tool: https://search.google.com/structured-data/testing-tool

    Both products haven’t any ratings.

    Hello,

    Sorry for the delay.

    I checked both the links and found the difference. I’ve attached the results in the Sensitive Data section. You’ll get the warning messages since there’s no review nor rating on those products. You’ll also notice that the not working product has no offers; that’s why it’s showing an error – Either “offers”, “review”, or “aggregateRating” should be specified.

    The Structured Data Testing Tool is being deprecated. For validating structured data for Google Search, Google now recommends using the Rich Results Test for more accurate and actionable feedback.

    https://search.google.com/test/rich-results

    I hope that helps. Thank you, and looking forward to your update.

    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 8 replies - 1 through 8 (of 8 total)

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