Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm trying to figure out how to start adding rich snippets to products but I keep getting an error from Google stating:

In order to generate a preview with rich snippets, either price or review or availability needs to be present.

But I have price in there in a meta tag. I don't get what's wrong here:

<li itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Product" class="span3">
    <div class="thumbnail"><meta itemprop="category" content="flowers">
        <a itemprop="url" href="/en/2-in-too-deep.html" title="Depth">
            <img itemprop="image" alt="A dozen red roses is as romantic as it is classic." src="/2-441-catalog/.jpg">
            <meta itemprop="description" content="[A dozen red roses is as romantic as it is classic.]">
        </a>
        <div class="caption_mobile visible-phone"><p itemprop="name">Depth</p></div>
    </div>
    <div class="caption hidden-phone">
        <h4 itemprop="alternateName">Depth</h4>
        <meta itemprop="price" content="&#36;40">
        <meta itemprop="currency" content="USD" />
    </div>
</li>
share|improve this question
    
Any reason major reason you've opted to use data-vocabulary when since June 2011, several major search engines have been collaborating on a new common data vocabulary called schema.org ? –  bybe Jan 9 at 20:50
    
I had originally tried using schema.org but when I tested it Google displaced 4 errors. So, without knowing, I tried data-vocabulary and only got one error. –  dcc Jan 10 at 16:27
    
Sounds like you avoided a problem when you should of fixed it :P –  bybe Jan 10 at 17:56
    
Did you get the errors fixed? –  dan Jan 18 at 2:20
add comment

1 Answer

For one, Offer should be nested under Product, and OfferDetails should have this value for itemtype:

itemtype="http://data-vocabulary.org/Offer"

Second, price should be specified with a floating point number.

See the documentation from Google here and follow the Singe product page code under "Examples" there.

A related question and answer are here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.