我可以定义多个Schema.org的“ItemAvailability”吗?

时间:2016-12-06 23:28:56

标签: product schema.org availability

我可以将ItemAvailability的两个值定义为产品加价Offer properties的一部分吗?

即。我想展示InStockInstoreOnly

Google的结构化数据测试工具没有标记包含这两个值的示例代码,但我找不到“实时”示例。

1 个答案:

答案 0 :(得分:1)

根据Google Merchant Center Help使用InStock就足够了,因为使用InStoreOnly意味着:

  

缺货(如果您的网站上的商品缺货但在实体零售商店有售,则非常有用)

使用这两个属性不会引发任何错误:

但我只会使用InStock

<div itemscope itemtype="http://schema.org/Product">
  <link itemprop="additionalType" href="http://www.productontology.org/id/Microwave_oven" />
  <span itemprop="name">Kenmore White 17" Microwave</span>
  <img itemprop="image" src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
  <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <!--price is 1000, a number, with locale-specific thousands separator
    and decimal mark, and the $ character is marked up with the
    machine-readable code "USD" -->
    <span itemprop="priceCurrency" content="USD">$</span>
    <span itemprop="price" content="1000.00">1,000.00</span>
    <link itemprop="availability" href="http://schema.org/InStock"/>In stock
    <link itemprop="availability" href="http://schema.org/InStoreOnly"/>In store only
  </div>
  Product description:
  <span itemprop="description">0.7 cubic feet countertop microwave. Has six preset cooking categories and convenience features like Add-A-Minute and Child Lock.</span>
</div>