-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
AggregateOffer (https://schema.org/AggregateOffer) isn't supported and result in a normal Offer. Could this be added?
return Context::create('product', [
'name' => 'some name',
'image' => [
'https://site.com/image1.png',
'https://site.com/image2.png'
],
'description' => 'some description',
'brand' => [
'@type' => 'Brand',
'name' => 'Awesome brand'
],
'offers' => [
'@type' => 'AggregateOffer',
'offerCount' => 3,
'lowPrice' => 100,
'highPrice' => 200,
'priceCurrency' => 'EUR'
]
]);
Expected:
{"@context":"http:\/\/schema.org","@type":"Product","name":"some name","description":"some description","brand":{"@type":"Brand","name":"Awesome brand"},"image":["https:\/\/site.com\/image1.png","https:\/\/site.com\/image2.png"],
"offers":{
"@type":"AggregateOffer",
"offerCount": "3",
"lowPrice": "100",
"highPrice": "200",
"priceCurrency":"EUR"
}
}
Actual:
{"@context":"http:\/\/schema.org","@type":"Product","name":"some name","description":"some description","brand":{"@type":"Brand","name":"Awesome brand"},"image":["https:\/\/site.com\/image1.png","https:\/\/site.com\/image2.png"],
"offers":{
"@type":"Offer",
"priceCurrency":"EUR"
}
}
stell
Metadata
Metadata
Assignees
Labels
No labels