How do I implement Rich Snippets on a product/service that has monthly fee?

我与影子孤独终老i 提交于 2019-11-27 08:13:53

问题


Using these but it's not validating:

<div itemscope itemtype="http://schema.org/Product">
  <h1 itemprop="name">Product</h1>
  <span itemprop="description">Product
  <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    Prices start at <meta itemprop="priceCurrency" content="PHP" />Php
    <span itemprop="price">1799.00 (monthly)
  </div>    
</div>

回答1:


To represent subscription costs (for an Offer), you could use the UnitPriceSpecification type and its unitCode property.

The unitCode’s value can be a UN/CEFACT Common Code, where MON is the code for month.

In Microdata, this could look like:

<div itemscope itemtype="http://schema.org/Product">

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

    <div itemprop="priceSpecification" itemscope itemtype="http://schema.org/UnitPriceSpecification">
      Prices start at <meta itemprop="priceCurrency" content="PHP" />Php
      <span itemprop="price">1799.00</span>
      <meta itemprop="unitCode" content="MON">(monthly)
    </div>

  </div>    

</div>


来源:https://stackoverflow.com/questions/27009419/how-do-i-implement-rich-snippets-on-a-product-service-that-has-monthly-fee

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!