Schema.org setup for related products?

戏子无情 提交于 2019-12-06 07:20:08

问题


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>


来源:https://stackoverflow.com/questions/31829042/schema-org-setup-for-related-products

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!