【问题标题】:Location-based price in Schema.orgSchema.org 中基于位置的价格
【发布时间】:2016-03-24 07:02:04
【问题描述】:

我的客户是一家零售店,在 Magento 上有一家在线精品店。我正在微数据中实现 Schema.org。

问题在于,他的价格因用户最近的城市而异。我使用哪些“报价”元素来让机器直接设置?

我担心 Google 可能会在 SERP 中显示错误的价格。我不想欺骗用户!

【问题讨论】:

  • 看起来不错。你知道是否有办法告诉机器“在那个城市周围”。我知道我可以将 ISO_3166 用于州/省,但客户的价格因城市而异。
  • 该字段还接受一个 Place,其子类型为 City

标签: location e-commerce schema.org google-rich-snippets


【解决方案1】:

一个Product 可以有多个Offer 项目(通过offers 属性),正是为了这样的目的。

Offer 项目中,您使用的属性描述了优惠在何种情况下(对谁、何时等)有效。对于基于位置的优惠,可以使用eligibleRegion 属性:

[…] 要约 […] 有效的地缘政治区域。

(使用ineligibleRegion 属性,您可以列出优惠在哪个位置无效有效。)

所以在微数据中它可能看起来像这样:

<article itemscope itemtype="http://schema.org/Product">
  <h1 itemprop="name">Product 1</h1>

  <section itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <h2>Offer 1</h2>
    <div itemprop="eligibleRegion" itemscope itemtype="http://schema.org/City">…</div>
  </section>

  <section itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <h2>Offer 2</h2>
    <div itemprop="eligibleRegion" itemscope itemtype="http://schema.org/City">…</div>
  </section>

</article>

Google 的 Product Rich Snippet 的文档没有提到 Product 有多个 Offer 项目的情况(AggregateOffer 的不同情况除外),因此不清楚是否可以在这样的情况。

【讨论】:

  • "Google 的 Product Rich Snippet 的文档没有提到产品有多个 Offer 项的情况(AggregateOffer 的不同情况除外),因此不清楚 Rich Snippet 是否可以显示在这样的情况。”可以,欧诺。在这种情况下,Google 会显示一个价格范围,例如“$8-$20”。
  • 我明白了。嗯,这是一个完整的答案,谢谢你的时间!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-05-03
  • 1970-01-01
  • 2013-07-14
  • 1970-01-01
  • 2019-02-02
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多