【问题标题】:Structured Data layout for complex pricing structure复杂定价结构的结构化数据布局
【发布时间】:2015-11-28 00:07:55
【问题描述】:

我正在使用基于批量购买报价的定价结构的产品。例如,一个产品的定价可能如下:

Buy 10-19 and the value of 1 is $3
Buy 20-29 and the value of 1 is $2
Buy 30-39 and the value of 1 is $1
Buy 40 or more and the value of 1 is $0.50

Minimum quantity available to purchase is 10.

如何在结构化数据(微数据格式)中正确标记?

目前我有:

<span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <meta itemprop="priceCurrency" content="USD"/>
    <meta itemprop="price" content="3" />
    <span itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
        <meta itemprop="minValue" content="10" />
        <meta itemprop="maxValue" content="19" />
        <meta itemprop="value" content="Number" />
    </span>
</span>

对于每个变体。然后我有:

<span itemprop="priceSpecification">
    <span itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
        <meta itemprop="minValue" content="10" />
    </span>
</span>

在产品块本身上,注明最少10个。

我真的不相信这是正确的结构和标签。有人可以提供一些见解吗?

【问题讨论】:

    标签: schema.org microdata


    【解决方案1】:

    您缺少实际的 PriceSpecification 项目(作为 priceSpecification 属性的值)。 UnitPriceSpecification 在您的情况下似乎是合适的子类型。

    所以结构可能如下所示:

    <div itemscope itemtype="http://schema.org/Offer">
      <div itemprop="priceSpecification" itemscope itemtype="http://schema.org/UnitPriceSpecification"></div>
      <div itemprop="priceSpecification" itemscope itemtype="http://schema.org/UnitPriceSpecification"></div>
      <div itemprop="priceSpecification" itemscope itemtype="http://schema.org/UnitPriceSpecification"></div>
    </div>
    

    我个人也会为第一级(10-19)提供UnitPriceSpecification,而不是直接在Offer下提供其属性:

      <div itemprop="priceSpecification" itemscope itemtype="http://schema.org/UnitPriceSpecification">
        <p itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
          <span itemprop="minValue">10</span>-<span itemprop="maxValue">19</span>
        </p>
        <p>$<span itemprop="price">3</span> <meta itemprop="priceCurrency" content="USD"/></p>
      </div>
    

    但我不知道是否有一些消费者可能会直接在Offer 下期待它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-07
      • 1970-01-01
      • 2014-09-29
      • 2020-01-03
      相关资源
      最近更新 更多