Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
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.

The Price should be added to all the Products for Rank Math to automatically add that to the Product Schema.

Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hi
Thanks a ml for your response and I am glad that it should be automated like that. Mine isn’t though – for instance in We-Vibe Bloom Vibrating Kegel Balls there are reviews and a aggregate rating but it isn’t pulling into schema and I have a Google Search Console issue on ‘Either “offers”, “review”, or “aggregateRating” should…
[moved to sensitive data section]
Hello,
Just ran the the test with the Google rich result it looks like Either “offers”, “review”, or “aggregateRating” is no longer showing.
For the “No global identifier provided (e.g., gtin, mpn, isbn) (optional)”
You will need to add the below code to your function.php file to fix that. Although these are optional values and will not impact your SEO in any way.
/**
* Filter to add GTIN to Variable Products.
*
* @param array $entity Snippet Data
* @return array
*/
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
$product = new WC_Product( get_the_ID() );
if( $product->is_type( 'simple' ) ){
$gtin_value = get_post_meta($product->get_id(),'_wpm_gtin_code', true);
$entity['gtin8'] = $gtin_value;
return $entity;
}elseif($product->is_type( 'variable' )){
$variation = new WC_Product_Variation(get_the_ID());
$gtin_value = get_post_meta($variation->get_id(),'_wpm_gtin_code', true);
$entity['gtin8'] = $gtin_value;
return $entity;
}else{
return $entity;
}
});
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.
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.