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

Ric*_*ans 5 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>
Run Code Online (Sandbox Code Playgroud)

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

小智 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>
Run Code Online (Sandbox Code Playgroud)

结果是

在此输入图像描述


小智 6

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

谷歌还需要价格和价格货币(Offer的两个属性).