I want to apply structured data product markup for a marketplace website. I have a page where five sellers are selling the same product.
Each seller has different price and different rating. The seller gets his aggregate rating by his buyers (the rating is for the product).
I want to apply product markup and want to include - product details, price, rating, availability.
There is a confusion in this case:
For the product rating, should I consider rating for all five sellers in total? If yes, then ratings displayed on SERP is different that that on the page. It will break Google's guidelines and Google might give a penalty.
Can I use product markup for five sellers independently? In this case, out of five markups, which markup is considered by Google?
Or is there any other method to markup?
Update 1:
Based on the reply received in comments from Tony McCreath, here is the code.
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Product Name",
"image": "https://example.com/photos/16x9/photo.jpg",
"brand": {
"@type": "Thing",
"name": "Product brand name"
},
"offers": [
{
"@type": "Offer",
"availability": "http://schema.org/InStock",
"offeredBy": "Seller 1",
"price": "100.00",
"priceCurrency": "USD",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.5",
"reviewCount": "10"
}
},
{
"@type": "Offer",
"availability": "http://schema.org/InStock",
"offeredBy": "Seller 2",
"price": "80.42",
"priceCurrency": "USD",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "3.5",
"reviewCount": "12"
}
},
{
"@type": "Offer",
"availability": "http://schema.org/InStock",
"offeredBy": "Seller 3",
"price": "105.42",
"priceCurrency": "USD",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "3",
"reviewCount": "15"
}
},
{
"@type": "Offer",
"availability": "http://schema.org/InStock",
"offeredBy": "Seller 4",
"price": "95.68",
"priceCurrency": "USD",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4",
"reviewCount": "20"
}
},
{
"@type": "Offer",
"availability": "http://schema.org/InStock",
"offeredBy": "Seller 5",
"price": "88.88",
"priceCurrency": "USD",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"reviewCount": "5"
}
}
]
}
}
</script>
For quick calculation, here is the ratingValue, ratingCount and Total for each sellers.
- 1st Seller 4.5 10 45
- 2nd Seller 3.5 12 42
- 3rd Seller 3 15 45
- 4th Seller 4 20 80
- 5th Seller 5 5 25
- Sum 20 62 237
- Average 4 - 3.82