2

当我在 Google 的 Rich Snippets 测试工具http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.camasicostume.ro%2Findex.php%3Froute%3Dproduct%尝试产品页面时2Fproduct%26product_id%3D478我发现它正在返回错误:

错误:schema.org 的微数据不完整。

似乎无法弄清楚为什么。对于产品标记,根据 Google 的政策,只需要产品名称、价格和货币:http: //support.google.com/webmasters/bin/answer.py ?hl=en&answer=146750

4

1 回答 1

4

问题出在这部分代码中

<span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
  <meta itemprop="price" content="99,00 Lei" />
  <meta itemprop="priceCurrency" content="Lei" />
  <link itemprop="availability" href="http://schema.org/InStock" />
</span>

在您提到的文档中

  • 价格要求

    一个浮点数。您可以使用小数点 ('.') 或逗号 (',') 作为分隔符。

    因此,让我们更正价格:

    meta itemprop="价格" 内容="99,00"

  • 货币要求

    用于描述产品价格的货币,采用三字母ISO 格式

    维基百科提示我们使用罗马尼亚货币的RON标识符。修正后

    meta itemprop="priceCurrency" 内容="RON"

让我们试试这个

<span itemscope itemtype="http://schema.org/Product">
  <meta itemprop="url" content="http://www.camasicostume.ro/index.php?route=product/product&amp;product_id=478" >
  <meta itemprop="name" content="wepa wepa " >
  <meta itemprop="model" content="X00851_PR013T2189" >
  <meta itemprop="manufacturer" content="Diesel" >

  <meta itemprop="image" content="http://www.camasicostume.ro/image/cache/imported/X00851_PR013T2189/stock_prod31697_image_1756005734-450x550.jpg" >

  <meta itemprop="image" content="http://www.camasicostume.ro/image/cache/imported/X00851_PR013T2189/stock_prod31697_image_1782593751-74x74.jpg" >

  <span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <meta itemprop="price" content="99,00" />
    <meta itemprop="priceCurrency" content="RON" />
    <link itemprop="availability" href="http://schema.org/InStock" />
  </span>

  <span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
    <meta itemprop="reviewCount" content="1">
    <meta itemprop="ratingValue" content="5">
  </span>
</span>

完美的。

在此处输入图像描述

于 2013-06-28T07:09:14.567 回答