嵌套在產品中具有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