1

我可以定义两个值ItemAvailability作为我的产品标记Offer属性的一部分吗?

即我想显示InStockAND InstoreOnly

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

4

1 回答 1

1

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

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

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

但我只会使用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>
于 2016-12-07T01:45:53.633 回答