我有一种产品,该产品按0.25码的长度出售。 1数量等于0.25
使用Google Shopping Feed时,使用unit_pricing_measure和unit_pricing_base_measure很容易:
<price>5 USD</price>
<unit_pricing_measure>0.25 yd</unit_pricing_measure>
<unit_pricing_base_measure>1 yd</unit_pricing_base_measure>
我希望以上代码会导致:“每码$ 20”
我不知道如何在Schema.org中复制它。这有可能吗?
答案 0 :(得分:1)
也许是这样,然后重复这样:
{
"@context":"https://schema.org",
"@type": "Product",
"name":"The name",
"description":"zzzzz",
"offers": {
"@type": "Offer",
"priceSpecification": {
"@type":"UnitPriceSpecification",
"price":"20",
"priceCurrency":"USD",
"referenceQuantity":{
"@type":"QuantitativeValue",
"name":"yard",
"value":"1",
"unitText":"yard",
"unitCode":"YRD",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add2h.htm"
}
}
}
}
此处使用以下链:产品 => 优惠 => priceSpecification => UnitPriceSpecification => referenceQuantity => QuantitativeValue 。 请注意,此处使用的带有网址的属性 sameAs 用于标识。