嵌套在产品中具有priceSpecification的产品会抛出不完整的微数据 Google Rich Snippets测试工具中的警告。嵌套在产品抛出警告
这
<div itemscope itemtype="http://schema.org/Product">
<h1 itemprop="name">1984 Vintage Selection Cabernet Sauvignon</h1>
<p itemprop="description">Cabernet Sauvignon.</p>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<p itemprop="priceSpecification" itemscope itemtype="http://schema.org/priceSpecification">Prices start at
<meta itemprop="priceCurrency" content="GBP" />£<span itemprop="price">0.71</span> (per bottle)</p>
<meta itemprop="validThrough" content="2013-09-01" />
</div>
</div>
抛出谷歌丰富网页摘要测试工具以下警告: 警告:不完整的微观数据使用schema.org。
如果我提出报价产品外:
<div itemscope itemtype="http://schema.org/Product">
<h1 itemprop="name">1984 Vintage Selection Cabernet Sauvignon</h1>
<p itemprop="description">Cabernet Sauvignon.</p>
</div>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<p itemprop="priceSpecification" itemscope itemtype="http://schema.org/priceSpecification">Prices start at
<meta itemprop="priceCurrency" content="GBP" />£<span itemprop="price">0.71</span> (per bottle)</p>
<meta itemprop="validThrough" content="2013-09-01" />
</div>
则警告不再泛起,但是这似乎并没有什么意义,因为报价不链接到产品是适用于。
schema.org上的所有示例嵌套在产品中提供,但是,它们都不使用priceSpecification。我只能找到一个博客文章,其中“优惠”不嵌套在“产品”中:3210。这不足以让我有信心在现场环境中使用。
这是正确的吗?特别是如果你投入多个优惠?
同意。我清楚地说明了我的代码示例太多 - 我使用priceSpecification的原因是我可以使用eligibleQuantity,eligibleTransactionVolume,价格范围等。 – iwein 2013-02-22 09:33:17