我想知道是否有一个包含多个“priceCurrency”和“price”的产品页面的工作示例。如果我们有两个区域和价格以及一个域,是否可以构建 json-ld 以同时具有价格和货币?像这样的东西:
"offers": {
"@type": "Offer",
"priceCurrency": "GBP",
"price": "219.95",
"availability": "https://schema.org/InStock"
},
"offers": {
"@type": "Offer",
"priceCurrency": "EUR",
"price": "200",
"availability": "https://schema.org/InStock"
},
提前致谢。
是的,您可以通过使用数组声明多个优惠来做到这一点。这是您修改后的示例:
"offers": [
{
"@type": "Offer",
"priceCurrency": "GBP",
"price": "219.95",
"availability": "https://schema.org/InStock"
},
{
"@type": "Offer",
"priceCurrency": "EUR",
"price": "200",
"availability": "https://schema.org/InStock"
}
]