Schema.org价格规格与销售价格

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

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

我正在努力理解定义销售价格的正确方法-即具有临时降价的产品。

我考虑的选项是L

  • 具有多个“价格规格”项目的单个“要约”
  • 带有单个“价格规格”的多个“提供”项目
  • 或者也许是其他完全?

具有多个“价格规格”项的单个“要约”

  "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”的多个“ Offer”项目

  "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",
        }
      ],
    }
  ]
  },

或者是完全不同的东西吗?我正在努力寻找与此相关的任何最终文件。

schema schema.org google-shopping
1个回答
0
投票

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

[如果我正在尝试这样做,我认为安全的方法是在销售当天更新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"
  }

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

您的第一个示例确实在Structured Data Testing Tool中进行了验证,但我认为这不会给您带来任何好处。我可以看到您可能想提前在哪里进行广告促销,但是据我所知,Google Shopping Feed / Carousel不会宣布going发生的销售-只是are发生的价格。

[最后一点,虽然priceSpecification确实可以在测试工具上进行验证并且适用于产品,但有关它的详细信息似乎有点含糊,我不愿期望它会提供很多价值。 priceSpecification on schema.org没有在产品中使用它的示例(尽管同样,并不是说这是错误的)。

© www.soinside.com 2019 - 2024. All rights reserved.