2016-05-13 42 views
2

我已經添加HTML代碼如下的產品頁面上我們的網站的一個「屬性提供的,不是由谷歌的類型發售對象認可」:錯誤:在結構化數據

<div itemtype="http://schema.org/Offer" itemscope="" itemprop="offers"> 
<div class="product-type-data"> 
    <div itemtype="http://schema.org/Offer" itemscope="" itemprop="offers" class="price-box"> 
     <span id="product-price-118" class="regular-price"> 
      <span itemprop="price" class="price">30,00&nbsp;€</span> 
     </span>       
    </div> 

    <p class="availability in-stock">Verfügbarkeit: <span>Auf Lager</span></p> 
    <meta content="http://schema.org/InStock" itemprop="availability"> 
    <div class="clearfix"></div> 
</div>     
<meta content="EUR" itemprop="priceCurrency"> 
<meta content="30" itemprop="price">    

在網站管理員工具中測試時,我收到錯誤:結構化數據中的「Google提供的物業優惠不被Google識別爲提供類型的物品」(僅適用於「結構化數據」類的div)。

我也在這裏附上網站管理員的錯誤快照。 enter image description here 是否有人能夠指出我要走向哪裏的正確方向?

感謝

回答

0

您可以在https://schema.org/Product和優惠https://schema.org/Offer找到JSON + LD對產品類型的例子,但這裏有一個例子:

<script type="application/ld+json"> 
{ 
    "@context": "http://schema.org", 
    "@type": "Product", 
    "aggregateRating": { 
    "@type": "AggregateRating", 
    "bestRating": "100", 
    "ratingCount": "24", 
    "ratingValue": "87" 
    }, 
    "image": "dell-30in-lcd.jpg", 
    "name": "Dell UltraSharp 30\" LCD Monitor", 
    "offers": { 
    "@type": "AggregateOffer", 
    "highPrice": "$1495", 
    "lowPrice": "$1250", 
    "offerCount": "8", 
    "offers": [ 
     { 
     "@type": "Offer", 
     "url": "save-a-lot-monitors.com/dell-30.html" 
     }, 
     { 
     "@type": "Offer", 
     "url": "jondoe-gadgets.com/dell-30.html" 
     } 
    ] 
    } 
} 
</script>