我应该如何处理具有多种尺寸/价格的产品的schema.org标记

ptm*_*.io 19 schema.org

在为我的一个cusomters在线商店实现schema.org标记时,我发现有点困难.我认为这是标记中缺少的选项.更好的报价也不是aggregateOffer可以正确处理这种情况 - 尽管我认为它很常见.

  • 一个产品的一页(让我们说它是一种身体乳液)
  • 身体乳液有3种尺寸,100,200和250ml
  • 它基本上有每个尺寸的内部productId(BL100,BL200和BL250)以及每个尺寸的EAN(http://en.wikipedia.org/wiki/International_Article_Number_ (EAN ) ).
  • 如何购买:进入产品页面,选择您的尺寸,通过javascript更改价格,点击添加到图表

:如何正确标记MULTIPLE尺寸和MULTIPLE价格的ONE产品?

问题:http: //schema.org/Product只建议一个对我来说错误的产品ID.如果我添加三个优惠(http://schema.org/Offer),搜索引擎可能会认为,定价是完全奇怪的,因为相同的产品有三个不同的优惠.

http://schema.org/AggregateOffer对我来说似乎不对.

谢谢你的帮助.

thi*_*der 13

我觉得来标记此特定情形的正确方法是嵌套几个购物单内的产品.要向每个商品添加其他信息,请使用IndividualProduct.我不是百分百肯定,但这似乎在谷歌结构化数据测试工具中运作良好.

看起来schema.org仍在使用标记产品的新方法进行更新.schema.org项目从Good Relations电子商务产品词汇中引入了大量结构.有关新词汇项目的更多信息,请参阅使用Schema.org的电子商务SEO.

假设我们要在网站上列出有关苏门答腊咖啡豆的信息.我们想要出售两种不同尺寸(12盎司和16盎司),每种尺寸都有不同的价格.但是,两种产品尺寸应该具有相同的图像("只是咖啡豆")和名称.结构看起来像:

Product (name, description, and image)
  aggregateRating
  Offer (price and priceCurrency)
    IndividualProduct (sku and weight)
  Offer (price and priceCurrency)
    IndividualProduct (sku and weight)
Run Code Online (Sandbox Code Playgroud)

将以下内容复制并粘贴到Google的结构化数据测试工具中,以了解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>
Run Code Online (Sandbox Code Playgroud)