Daniel Böttner
Daniel Böttner

Reputation: 112

Offers in Products (schema.org / rich snippets)

I try to optimize the microdata/ schema.org/ rich snippet markup for product pages within some templates we use.

While doing so placed itemprop="offers" itemscope itemtype="http://schema.org/Offer" within a itemscope itemtype="http://data-vocabulary.org/Product"

Which should work according to

as well as

but fails to validate on Google's Structured Data testing tool

Can someone give me some insight on which of the information I should focus? The 'Offer' delivers some interesting properties I really would like to use within products.

Same goes for isRelatedTo which is mentioned on schema.org but fails to validate.

Upvotes: 0

Views: 314

Answers (1)

unor
unor

Reputation: 96527

You are using the Product type and the offers¹ property from the vocabulary Data-Vocabulary.org, and the Offer type from the vocabulary Schema.org. (¹ I don’t know if Data-Vocabulary.org really defined an offers property; most of their site seems to be deleted.)

If you want Google Search to consume your data, you’ll want to use the vocabulary Schema.org.

Schema.org also has a type representing products (Product) and a property for referencing an Offer from a Product (offers).

In Microdata, this could look like:

<article itemscope itemtype="http://schema.org/Product">
  <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
  </div>
</article>

Upvotes: 1

Related Questions