【发布时间】:2020-05-03 06:04:50
【问题描述】:
我目前正在为电子商务网站构建 Schema.org 模板,目的是生成 Google 购物 Feed。
我很难理解定义销售价格的正确方法 - 即暂时降价的产品。
我考虑过的选项是L
- 一个带有多个“PriceSpecification”项的“Offer”
- 多个“Offer”项目和一个“PriceSpecification”
- 或者完全是别的什么?
单个“优惠”和多个“PriceSpecification”项目
"offers": {
"@type": "Offer",
"url": "https://kx.com/url",
"itemCondition": "http://schema.org/UsedCondition",
"availability": "http://schema.org/InStock",
"PriceSpecification": [
{
"@type": "PriceSpecification",
"price": 15.00,
"priceCurrency": "USD"
},
{
"@type": "PriceSpecification",
"price": 15.00,
"priceCurrency": "USD",
"validFrom": "2020-01-01",
"validThrough": "2020-02-01",
}
],
},
多个“优惠”项目和一个“PriceSpecification”
"offers": [
{
"@type": "Offer",
"url": "https://kx.com/url",
"itemCondition": "http://schema.org/UsedCondition",
"availability": "http://schema.org/InStock",
"PriceSpecification": [
{
"@type": "PriceSpecification",
"price": 15.00,
"priceCurrency": "USD"
}
],
},
{
"@type": "Offer",
"url": "https://kx.com/url",
"itemCondition": "http://schema.org/UsedCondition",
"availability": "http://schema.org/InStock",
"PriceSpecification": [
{
"@type": "PriceSpecification",
"price": 15.00,
"priceCurrency": "USD",
"validFrom": "2020-01-01",
"validThrough": "2020-02-01",
}
],
}
]
},
或者是完全不同的东西?我正在努力寻找有关此的任何结论性文档。
【问题讨论】:
-
您在 GSDTT 上检查过这些吗?恕我直言,第一种情况不起作用。第一个和第二个 PriceSpecification 语句的子集是相同的。您需要公开两个不同的语句。减少(销售价格)表示从时间 1 到时间 2 的变化。将时间 1 设置为“昨天”,将时间 2 设置为从“今天”开始的范围。价格变化与过去的事件有关(除非您宣传将来会降价,在这种情况下,在此之前没有人会购买)。
标签: schema schema.org google-shopping