本文介绍了schema.org/microdata - 产品还是优惠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用微格式和确定要使用的项目类型(产品或优惠)时遇到问题.我已经使用 Offer 向我们销售的各种产品添加数据(每页 1 个).尽管这在 Google 结构化数据测试工具中得到了正确验证,但它不会在结果中显示价格/评级/库存.如果我使用 Product 和 Offer 的混合物,那么尽管我不确定这是正确的方法吗?

谢谢,

瑞克

<div itemscope itemtype="http://schema.org/Offer"><div itemprop="name" class="product-details-title" id="item_product_prop">我的帐篷</div><div itemprop="description" id="item_product_prop">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>

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

解决方案

如果产品在您的网站上出售,您实际上需要产品页面上的 Offer 和 Product.优惠应包含在产品中.

Google 还需要 price 和 priceCurrency(Offer 的两个属性).

I am having trouble using MicroFormats and working out which itemtype to use, either Product or Offer. I have used Offer to add data to the various products that we sell (1 per page). Although this validates properly in the Google Structured Data testing tool it will not show the Price/Rating/InStock in the results. If I use a mixture of Product and Offer then it will although I am not sure this is the correct way to do this ?

Thanks,

Rick

<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

解决方案

If a product is offered for sale on your website, you actually need both Offer and Product on a product page. An Offer should live within Product.

Google also requires price and priceCurrency (both properties of Offer).

这篇关于schema.org/microdata - 产品还是优惠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 08:13