Review Microdata if the product does not have a review
-
We have many products that do not have reviews and are causing warnings in googles microdata. Is there anything you can do for products without a review so you don't get errors for aggregate review or review??
-
I assume you mean that your code is outputting empty review when there are no reviews? Are you using a plugin, or is it custom code?
If it's a plugin, I would suggest speaking with the plugin developer or raising it via their feature request process.
If it's custom code, then I'm afraid it is down to you! If there is no review for that product, don't output the microdata!
-
If there is no review it is not outputing any aggregate review or reviews if there are no reviews, but google is giving a warning for now having the microdata since the type is product. I wasn't sure if there was some sort of null value or not rated.
-
Ah, sorry, I misunderstood.
"Review" is only a recommended property of "Product", so while you will get a warning, it should not be detected as an error and won't affect the structured data being parsed.