Schema.org'mpn'用于产品变化

问题描述 投票:0回答:1

我有一个电子商务网站,我正在努力确保所有内容都正确结构,并且不确定如何处理mpn值。

我有不同的产品变体,每个产品都有自己的MPN,但是,它们存在于我的网站上的一个产品页面中,下拉选择用户想要的变体。

我应该将所有MPN添加到结构化数据中吗?或者在这种情况下如何构建信息?

schema.org structured-data
1个回答
0
投票

每个变体应该是它自己的Product(或ProductModel)。然后每个Product / ProductModel将有一个mpn值。

如果一个Product用于所有变体,则无法传达产品的差异(或者首先存在变体),而其他变体无法对特定变体做出陈述。

例如,如果一个ProductModel用于两种变体提供的衬衫,则没有办法传达哪个name / color / mpn属于一起(它是一个产品型号有两个名称,两种颜色和两个MPN):

{
  "@context": "http://schema.org",
  "@type": "ProductModel",
  "name": ["Blue shirt", "Red shirt"],
  "color": ["Red", "Blue"],
  "mpn": ["23", "24"]
}

所以,应该有两个ProductModel项目:

{
  "@context": "http://schema.org",
  "@type": "ProductModel",
  "@id": "#p24",
  "name": "Blue shirt",
  "color": "Blue",
  "mpn": "24",
  "isSimilarTo": {"@id": "#p23", "@type": "ProductModel"}
}
{
  "@context": "http://schema.org",
  "@type": "ProductModel",
  "@id": "#p23",
  "name": "Red shirt",
  "color": "Red",
  "mpn": "23",
  "isSimilarTo": {"@id": "#p24", "@type": "ProductModel"}
}
© www.soinside.com 2019 - 2024. All rights reserved.