我认为标记这种特定场景的正确方法是在一个Product内嵌入几个Offers。要向每个优惠添加附加信息,请使用IndividualProduct。我不是100%确定,但这似乎在Google结构化数据测试工具中运行良好。
它看起来像schema.org仍在更新以新的方式来标记您的产品。 schema.org项目从Good Relations电子商务产品词汇中抽取了很多结构。有关新词汇表项目的更多信息,请参阅E-commerce SEO Using Schema.org Just Got A Lot More Granular。
假设我们想要在网站上列出有关苏门答腊咖啡豆的信息。我们想出售两种不同的尺寸(12盎司和16盎司),每种尺寸都有不同的价格。但是,两种产品尺寸都应该具有相同的图像('只是咖啡豆')和名称。结构将类似于:
Product (name, description, and image)
aggregateRating
Offer (price and priceCurrency)
IndividualProduct (sku and weight)
Offer (price and priceCurrency)
IndividualProduct (sku and weight)
复制并粘贴以下为谷歌的Structured Data Testing Tool看到谷歌将如何解释HTML。
jsFiddle display
<article class="product" itemscope itemtype="http://schema.org/Product">
<div class="images">
<a href="images/product.jpg">
<img alt="Sumatra Coffee Beans" itemprop="image" src="images/product.jpg">
</a>
</div>
<div class="content">
<header>
<h1 itemprop="name">Sumatra Coffee Beans</h1>
</header>
<div class="code">
<span class="label">Item Number:</span>
<span itemprop="productID">sumatra-coffee</span>
</div>
<div itemprop="description">
<p>Error 418</p>
</div>
<div class="reviews" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<div class="details">
Rated <span itemprop="ratingValue">4.5</span>/5
</div>
<div class="count">
(<span itemprop="reviewCount">9</span> reviews)
</div>
</div>
<div class="offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/IndividualProduct">
<span class="sku" itemprop="sku">scb-ov1</span>
– (<span itemprop="weight">12 oz.</span>)
</div>
<div class="price">$<span itemprop="price">14.99<span></div>
<meta content="USD" itemprop="priceCurrency">
</div>
<div class="offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/IndividualProduct">
<span class="sku" itemprop="sku">scb-ov2</span>
– (<span itemprop="weight">16 oz.</span>)
</div>
<div class="price">$<span itemprop="price">20.99</span></div>
<meta content="USD" itemprop="priceCurrency">
</div>
</div>
</article>
又如材料或光洁度。例如,同样的水龙头进来,铬,镍,青铜和金板,每个都有自己的价格。 – linuxdan 2013-11-06 23:03:59