【问题标题】:Schema.org 'mpn' for product variationsSchema.org 'mpn' 用于产品变体
【发布时间】:2019-04-19 04:13:47
【问题描述】:

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

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

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

【问题讨论】:

    标签: schema.org structured-data


    【解决方案1】:

    每个变体都应该是它自己的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"}
    }
    

    【讨论】:

    • 可以使用多个Offer作为变体,每个Offer都有一个mpn吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-13
    • 2016-11-27
    • 1970-01-01
    • 2023-03-14
    • 1970-01-01
    相关资源
    最近更新 更多