TomJones999
TomJones999

Reputation: 853

Google SDTT: "The property 'availability' is not recognized by Google for an object of type Product"

Situation: need to add the availability property to a product page.

Schema.org recommends this format for Microdata:

<link itemprop="availability" href="http://schema.org/InStock" />In stock

I'm combining it with the code on our site:

<li>
    <i class="fa fa-check-square-o">&nbsp;
        <link itemprop="availability" href="http://schema.org/InStock">
        <span>In Stock</span>
    </i>
</li>

Problem: Google Structured Data Testing Tool reports:

http://schema.org/InStock (The property availability is not recognized by Google for an object of type Product.)

Is this a code issue?
Or am I missing some Schema/Google "wrapper" for the availability property?

Upvotes: 2

Views: 2331

Answers (1)

TomJones999
TomJones999

Reputation: 853

Ack. Figured it out. availability has to be inside an Offer:

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">              
  <h1>
    <ul>
      <li>
        <i class="fa fa-check-square-o">&nbsp;
          <link itemprop="availability" href="http://schema.org/InStock">
          <span>In Stock</span>
        </i>
      </li>
    </ul>
  </h1>
</div>

Upvotes: 5

Related Questions