Add autmatically review on product page

  • Hi,

    Before i used to work with schemapro but i find your plugin to test it.

    I could not add a fixe note on my product page .
    Plus : i get 4 error :

    Champ “review” manquant (facultatif)
    Champ “aggregateRating” manquant (facultatif)
    Aucun identifiant global (code GTIN, référence fabricant ou ISBN) n’a été fourni (facultatif)
    Price set to 0 euros.

    How could i setup all this element to get a structured schema on all my product page.
    I did not use woocommerce but a premium theme .

    Please help all my setting gone before i get with all my product page review + price noticed .
    And now when i run a test on google search console i get all error .

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    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 your help.

    But i do not use woocommerce and you suggest me to activate the woocommerce module on rankmath ?

    I am using a premium theme and it does not run on woocommerce.

    Also, where could i set up a fix review ? Exemple 6 reviews fixe on all product page ?
    I mean on schema pro we can set up a fixe review automatically on all product page.

    Thank you very much for you big help


    You can modify the SKU, brand and rating values in the page Rank math metabox under the schema tab:

    Hope this helps you.

    Thank you,

    But how could i do it automatically on all my product (about 1000 services)


    You would need to use one of our filters to get the current Rank Math meta data on each post and modify the schema to add the fields you want there.

    If you know about coding, you might be able to do it by yourself; if not, you will need to ask a freelancer/dev to do it for you:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
       // Here you need to get the data from the post
       // And here you have to set the fields in the $entity object
       // With the Schema structures you want
       $entity['schema_field'] = value;
       return $entity;

    Looking forward to help you.


    I understand so i must add this piece of code of function.php
    And replace the value v by my number of reveiews that i want to diplay on all product page?

    Thank you for your help


    That code is just for an example.

    You need to be familiar with coding to make it work.

    With that said, we do not recommend adding the ratings automatically as that might get you kicked from the rich snippets program. You must add the Schema that is in line with the actual ratings you are getting from your real visitors/customers.

    Hope that helps.


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

The ticket ‘Add autmatically review on product page’ is closed to new replies.