Schema.org setup for related products?

2019-04-16 02:39发布

问题:

I would like to setup Schema.org markup for related products.

I have tried this code but I have doubt in my mind:

itemprop="isRelatedTo" itemscope itemtype="http://schema.org/Product"

My product page is https://www.amigotrekking.com/everest-base-camp-trek.html

回答1:

  • If it’s a "functionally similar" product, use the isSimilarTo property.

  • If it’s a "consumable" for another product, use the isConsumableFor property.

  • If it’s an "accessory or spare part" for another product, use the isAccessoryOrSparePartFor property.

  • If it’s a "somehow related" product, use the isRelatedTo property.

So for a related product, a Microdata example would be:

<article itemscope itemtype="http://schema.org/Product">
  <aside>
    <article itemprop="isRelatedTo" itemscope itemtype="http://schema.org/Product"></article>
  </aside>
</article>