Hello @j2fb,
The error message you’re seeing in the Google Search Console is related to the structured data for reviews. When a product has no reviews, there’s no “author” for the review, hence the missing “name” field.
A possible solution is implementing a default author name when there are no reviews, such as “No reviews yet”. This should satisfy Google’s requirements for the “author” field.
Alternatively, you can manage Schema with a plugin such as SNIP, Schema & Structured Data for WP & AMP, Rank Math SEO, Yoast SEO, Yoast WooCommerce extension, or any other plugin. If you want to disable review structured data, add the following snippet to your child theme’s functions.php or use a plugin like Code Snippet.
/**
* Remove partial product structured data.
*/
function srdev_remove_partial_product_structured_data( $markup, $product ) {
unset( $markup['aggregateRating'] );
return $markup;
}
add_filter( 'woocommerce_structured_data_product', 'srdev_remove_partial_product_structured_data', 10, 2 );
Please let us know if this resolves your issue or if you have any further questions. We’re here to help!