谷歌摘要未显示我的产品的价格


google snippets not showing the price for my product

`<div itemscope itemtype="http://data-vocabulary.org/product">
<div itemprop="name">
naren
</div>
<div itemprop="review" itemscope itemtype="http://data-vocabulary.org/review">
<span itemprop="rating">5</span>
</div>
<div itemprop="offers" itemscope itemtype="http://data-vocabulary.org/offer">
<span itemprop="price"> USD 500</span>
</div>
</div>`

我使用此代码来获取产品的价格和评级。我得到了评级,但价格没有显示.google确实在底部显示价格信息,但在搜索预览中没有/我做错了什么?

这是我得到的谷歌片段的结果

`Item
Type: http://data-vocabulary.org/product
name = naren
review = Item( 1 )
offers = Item( 2 )
Item 1
Type: http://data-vocabulary.org/review
rating = 5
Item 2
Type: http://data-vocabulary.org/offer
price = USD 500 `

请尝试测试此代码以了解我在 http://www.google.com/webmasters/tools/richsnippets 中的意思

价格和货币必须拆分,将您的代码替换为:

<div itemscope itemtype="http://data-vocabulary.org/product">
    <div itemprop="name">naren</div>
    <div itemprop="review" itemscope itemtype="http://data-vocabulary.org/review">
        <span itemprop="rating">5</span>
    </div>
    <div itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
        <meta itemprop="currency" content="USD" />
        USD <span itemprop="price">500</span>
    </div>
</div>

为什么不是这个?

<div itemscope itemtype="http://data-vocabulary.org/product">
    <div itemprop="name">naren</div>
    <div itemprop="review" itemscope itemtype="http://data-vocabulary.org/review">
        <span itemprop="rating">5</span>
    </div>
    <div itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
        <span itemprop="currency">USD</span>
        <span itemprop="price">500</span>
    </div>
</div>

我 schema.org 的运气比 data-vocabulary.org 好。

试试这个:

<div itemscope itemtype="http://schema.org/product">
<div itemprop="name">
naren
</div>
<div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/offer">
<link itemprop="availability" href="http://schema.org/InStock">
<meta itemprop="priceCurrency" content="usd">
<span itemprop="price">$500</span>
</div>
</div>