2012-07-11 59 views
0
`<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>` 

我使用此代碼,以獲得價格和評級我product.I我得到的評級,但價格不showing.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

回答

1

價格和貨幣意味着已經被分裂,取代你code with:

<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> 
0

爲什麼不這樣做?

<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> 
0

我用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>