【问题标题】:Schema.org PriceSpecification with a sale price带有销售价格的 Schema.org PriceSpecification
【发布时间】:2020-05-03 06:04:50
【问题描述】:

我目前正在为电子商务网站构建 Schema.org 模板,目的是生成 Google 购物 Feed。

我很难理解定义销售价格的正确方法 - 即暂时降价的产品。

我考虑过的选项是L

  • 一个带有多个“PriceSpecification”项的“Offer”
  • 多个“Offer”项目和一个“PriceSpecification”
  • 或者完全是别的什么?

单个“优惠”和多个“PriceSpecification”项目

  "offers": {
    "@type": "Offer",
    "url": "https://kx.com/url",
    "itemCondition": "http://schema.org/UsedCondition",
    "availability": "http://schema.org/InStock",
    "PriceSpecification": [
      {
        "@type": "PriceSpecification",
        "price": 15.00,
        "priceCurrency": "USD"
      },
      {
        "@type": "PriceSpecification",
        "price": 15.00,
        "priceCurrency": "USD",
        "validFrom": "2020-01-01",
        "validThrough": "2020-02-01",
      }
    ],
  },

多个“优惠”项目和一个“PriceSpecification”

  "offers": [
    {
      "@type": "Offer",
      "url": "https://kx.com/url",
      "itemCondition": "http://schema.org/UsedCondition",
      "availability": "http://schema.org/InStock",
      "PriceSpecification": [
        {
          "@type": "PriceSpecification",
          "price": 15.00,
          "priceCurrency": "USD"
        }
      ],
    },
    {
      "@type": "Offer",
      "url": "https://kx.com/url",
      "itemCondition": "http://schema.org/UsedCondition",
      "availability": "http://schema.org/InStock",
      "PriceSpecification": [
        {
          "@type": "PriceSpecification",
          "price": 15.00,
          "priceCurrency": "USD",
          "validFrom": "2020-01-01",
          "validThrough": "2020-02-01",
        }
      ],
    }
  ]
  },

或者是完全不同的东西?我正在努力寻找有关此的任何结论性文档。

【问题讨论】:

  • 您在 GSDTT 上检查过这些吗?恕我直言,第一种情况不起作用。第一个和第二个 PriceSpecification 语句的子集是相同的。您需要公开两个不同的语句。减少(销售价格)表示从时间 1 到时间 2 的变化。将时间 1 设置为“昨天”,将时间 2 设置为从“今天”开始的范围。价格变化与过去的事件有关(除非您宣传将来会降价,在这种情况下,在此之前没有人会购买)。

标签: schema schema.org google-shopping


【解决方案1】:

我注意到 Google 强烈建议在 Offer 上使用 priceValidUntil 值。我通常还使用经验法则,即您的结构化数据应该与您的标记中的内容相匹配,因此我认为销售的起点可能是不必要的,尤其是对于 Google 购物提要。

如果我接近这个,我觉得安全的方法是更新您的 Product 结构化数据以及促销当天的内容,使用 priceValidUntil 字段记录促销结束的时间,然后删除一旦该日期到来,属性并更新价格。你最终会得到类似的东西:

 "offers": {
    "@type": "Offer",
    "url": "https://kx.com/url",
    "itemCondition": "http://schema.org/UsedCondition",
    "availability": "http://schema.org/InStock",
    "price": 15.00,
    "priceCurrency": "USD",
    "priceValidUntil": "2/1/2020"
  }

在此示例中,priceValidUntil 属性将在 2020 年 2 月 1 日被删除,price 属性将与页面上的内容一起更新。

您的第一个示例在Structured Data Testing Tool 中确实有效,但我认为这对您没有任何好处。我可以提前看到您可能希望在哪里宣传促销活动,但据我所知,Google 购物 Feed/Carousel 不会宣布即将发生的促销活动 - 只是的价格正在发生

最后一点,虽然priceSpecification 确实在测试工具上进行了验证并且适用于产品,但它周围的细节似乎有点模糊,我会犹豫是否期待它提供很多价值。 priceSpecification on schema.org 没有在产品中使用它的例子(虽然同样,并不是说这意味着它是错误的)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-06
    • 2014-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多