Pedro
Pedro

Reputation: 11

Can I define more than one Schema.org 'ItemAvailability'?

Can I define two values of ItemAvailability as part of the Offer properties of my product mark-up?

I.e. I'd like to show InStock AND InstoreOnly.

Google's structured data testing tool doesn't flag an example code containing both values, but I can't find "live" examples.

Upvotes: 1

Views: 684

Answers (1)

Shannon Young
Shannon Young

Reputation: 1576

Using InStock should suffice according to Google Merchant Center Help, as using InStoreOnly implies:

Out of stock (useful if the item is out of stock on your site but available at physical retail shops)

Using both attributes does not throw up any errors in:

But I would only use InStock.


<div itemscope itemtype="http://schema.org/Product">
  <link itemprop="additionalType" href="http://www.productontology.org/id/Microwave_oven" />
  <span itemprop="name">Kenmore White 17" Microwave</span>
  <img itemprop="image" src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
  <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <!--price is 1000, a number, with locale-specific thousands separator
    and decimal mark, and the $ character is marked up with the
    machine-readable code "USD" -->
    <span itemprop="priceCurrency" content="USD">$</span>
    <span itemprop="price" content="1000.00">1,000.00</span>
    <link itemprop="availability" href="http://schema.org/InStock"/>In stock
    <link itemprop="availability" href="http://schema.org/InStoreOnly"/>In store only
  </div>
  Product description:
  <span itemprop="description">0.7 cubic feet countertop microwave. Has six preset cooking categories and convenience features like Add-A-Minute and Child Lock.</span>
</div>

Upvotes: 1

Related Questions