我是Schema.org标记的新手,所以我实际上已经为我的房地产标记提出了以下代码,并且Google测试一直说我不应该使用offer for specSpecification。我现在迷路了。
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Nodorus - Precinct 17",
"image": "http://www.setiaalam.com.my/images/products/p17/nodorus-c.jpg",
"description": "A distinct modern link residence set amidst award-winning green spans, wetland wonders and multiple amenities. Come home to articulately crafted spaces where architecture and nature's beauty infuse home with fresh chic. Rejoice in this cosy new addition to Setia Alam North.",
"additionalType": "Product",
"Offer": {
"@type": "PriceSpecification",
"priceCurrency": "RM",
"priceSpecification": {
"minPrice": "593000",
"maxPrice": "890000"
},
"availability": "http://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "S P Setia"
}
}
}
答案 0 :(得分:2)
如果您想为Offer
添加Product
,则必须使用offers
property。
所以不要这样(这没有意义,因为Offer
不是属性):
{
"@context": "http://schema.org/",
"@type": "Product",
"Offer": {}
}
你必须使用它:
{
"@context": "http://schema.org/",
"@type": "Product",
"offers": {}
}
offers
值的类型应为Offer
,而不是PriceSpecification
。
PriceSpecification
可以通过priceSpecification
属性添加到Offer
。
所以结构看起来像:
{
"@context": "http://schema.org/",
"@type": "Product",
"offers": {
"@type": "Offer",
"priceSpecification": {
"@type": "PriceSpecification"
}
}
}