schema.org / microdata - 产品或优惠?

时间:2013-07-18 11:37:00

标签: microdata schema.org

我在使用MicroFormats时遇到问题,并确定要使用哪种itemtype,无论是Product还是Offer。我使用Offer将数据添加到我们销售的各种产品中(每页1个)。虽然这在Google结构化数据测试工具中正确验证,但它不会在结果中显示价格/评级/ InStock。如果我使用Product和Offer的混合物,那么虽然我不确定这是正确的方法吗?

谢谢,

瑞克

<title>My Tent</title>
<div itemscope itemtype="http://schema.org/Offer">
<div itemprop="name" class="product-details-title" id="item_product_prop">My Tent</div>
<div itemprop="description" id="item_product_prop">A Description for MyTent</div>
<meta itemprop="aggregateRating" id="item_product_prop" content="[3 Ratings]">
<div id="item_product_prop" itemprop="price">$13</div>
<div itemprop="availability" id="item_product_prop" content="InStock"></div></div>
</div>

http://www.google.com/webmasters/tools/richsnippets?q=uploaded:8004e1c78c1098daa7aa283c26b42939

3 个答案:

答案 0 :(得分:7)

schema.org/Product页提供了很好的示例。使用它作为参考示例,您将得到您想要的。

<div itemscope itemtype="http://schema.org/Product">
  <span itemprop="name">Kenmore White 17" Microwave</span>
  <img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
  <div itemprop="aggregateRating"
    itemscope itemtype="http://schema.org/AggregateRating">
   Rated <span itemprop="ratingValue">3.5</span>/5
   based on <span itemprop="reviewCount">11</span> customer reviews
  </div>

  <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <span itemprop="price">$55.00</span>
    <link itemprop="availability" href="http://schema.org/InStock" />In stock
  </div>
</div>

结果

enter image description here

答案 1 :(得分:6)

如果产品在您的网站上出售,您实际上需要在产品页面上同时提供产品和产品。要约应存在于产品中。

Google还要求price和priceCurrency(Offer的两个属性)。

答案 2 :(得分:0)

我认为您的报价需要额外的水平。 如果查看http://www.heppnetz.de/ontologies/goodrelations/goodrelations-UML.png,您会看到优惠包含一种或多种产品。