在为我的一个cusomters在线商店实现schema.org标记时,我发现有点困难。我认为这是标记中缺少的选项。更好的报价也不是aggregateOffer可以正确处理这种情况 - 尽管我认为它很常见。
问:如何正确标记MULTIPLE尺寸和MULTIPLE价格的ONE产品?
问题:http://schema.org/Product建议只有一个对我来说错误的产品ID。如果我添加三个优惠(http://schema.org/Offer),搜索引擎可能会认为,定价是完全奇怪的,因为相同的产品有三个不同的优惠。
qazxsw poi对我来说也不合适。
谢谢你的帮助。
我认为标记这个特定场景的正确方法是在单个http://schema.org/AggregateOffer中嵌套几个Offers。要向每个商品添加其他信息,请使用Product。我不是百分百肯定,但这似乎在谷歌结构化数据测试工具中运作良好。
看起来schema.org仍在使用标记产品的新方法进行更新。 schema.org项目从IndividualProduct电子商务产品词汇中引入了大量结构。有关新词汇项的更多信息,请参阅Good Relations。
假设我们要在网站上列出有关苏门答腊咖啡豆的信息。我们想要出售两种不同尺寸(12盎司和16盎司),每种尺寸都有不同的价格。但是,两种产品尺寸应该具有相同的图像(“只是咖啡豆”)和名称。结构看起来像:
E-commerce SEO Using Schema.org Just Got A Lot More Granular
将以下内容复制并粘贴到Google的Product (name, description, and image)
aggregateRating
Offer (price and priceCurrency)
IndividualProduct (sku and weight)
Offer (price and priceCurrency)
IndividualProduct (sku and weight)
中,以了解Google将如何解释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>
s的Product
,每个尺寸一个。当然,限制是它没有提供指定多个产品ID的正式方法,但也许你可以非正式地将它们放在Offer
的Description或URL属性中。这不是一个合适的选择,但也许它足够接近。
另一个选择是加入Public Vocabs电子邮件列表(lists.w3.org/Archives/Public/public-vocabs),该列表声称它是“用现有词汇表提出扩展,新类型或部署体验反馈的地方” “(lists.w3.org/Archives/Public/public-vocabs/2011Oct/0162.html),并为您的问题提出解决方案。
我会建议稍微不同的思考这个特定网页的方式。不要将此特定网页视为“产品”页面,而应将其视为“WebPage”类型。这个'WebPage'实际上包含三个不同的'产品',每个'产品'都有自己的'Offer'和他们自己的'productID'。当你说每个尺寸都有它自己的EAN时,这对我来说是一个很大的指标,即每个尺寸的价格/尺寸/ ID应该包含在内部,如果它是自己的'产品'div。
这就是Google所说的:使用itemOffered正在销售的商品。通常,这包括嵌套产品,但它也可以包含其他项类型或自由文本。
所有不同的变化应该表示为单独的Offer
s与单独的Product
s。使用Offer
的Product
和isSimilarTo
属性将它们链接在一起。
参考:isRelatedTo