2013-03-07 91 views
2

我的數據遍佈,所以我不能讓這種格式:我也得到了「警告:schema.org不完整的微數據」。

<div itemscope itemtype="http://schema.org/Product"> 
    <h1 itemprop="name"> 
    <p itemprop="description"> 
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> 
      <span itemprop="price">  
    </div> 
</div> 

就像你在頁面上的第一件事就是下面的代碼中看到的是具有比我內發售的架構類路徑具有圖像和標題屬於產品比我eligibleQuantity一遍屬於要約等.... 所以我加了:

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

在頁面的開始和關閉它結束,並且每當我有一個不屬於像「eligibleQuantity」fo這樣的產品模式的元素時R實施例我這樣做:

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> 
     {L_901}: <span itemprop="eligibleQuantity">{QTY}</span><br /> 
     </div> 

的問題是,我不知道這是做了正確的方式找不出另一種方式。我還收到了「警告:使用schema.org不完整微數據」。 這裏是一個鏈接到頁面:

https://www.pchounds.com/item.php?id=82627#.UTi7kRz_mSp

以下是從頁一些代碼,這樣你就可以有一個想法,我做了什麼。謝謝。

<div itemscope itemtype="http://schema.org/Product"> 
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="breadcrumb"> {L_041}:<span itemprop="category"> {TOPCATSPATH}</span> </div> 

........................................................................................... 
!-- IF B_HASIMAGE --> 
<div class="span3" style="text-align:center"> <img class="img-polaroid" itemprop="image" 
    src="{SITEURL}getthumb.php?w={THUMBWIDTH}&fromfile={PIC_URL}" border="0" alt="title" align="center"><br> 
<h1 itemprop="name" style="line-height:24px;">{TITLE}</h1>........................................................................................... 
<!-- IF QTY gt 1 --> 
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> 
    {L_901}: <span itemprop="eligibleQuantity">{QTY}</span><br /> 
    </div> 
    <!-- ENDIF --> 
    <!-- IF B_HASENDED --> 
    {L_904}<br /> 
    <!-- ENDIF --> 
    <!-- IF ITEM_CONDITION --> 
    <b> {L_1036}:</b> <span itemprop="itemCondition">{ITEM_CONDITION}</span><br /> 
    <!-- ENDIF --> 
    <!-- IF ITEM_MANUFACTURER --> 
    <b> {L_1037}:</b> <span itemprop="manufacturer">{ITEM_MANUFACTURER}</span><br />      
    <!-- ENDIF --> 
    <!-- IF ITEM_MODEL --> 
    <b> {L_1038}:</b> <span itemprop="mpn">{ITEM_MODEL}</span><br /> 
    <!-- ENDIF --> 
    <!-- IF ITEM_COLOUR --> 
    <b> {L_1039}:</b> <span itemprop="color">{ITEM_COLOUR}</span><br />             
    <!-- ENDIF --> 
    <!-- IF ITEM_YEAR --> 
    <b> {L_1040}:</b> {ITEM_YEAR}<br /> 
    <!-- ENDIF --> 
    </small> 

回答

0

報價必須有一個價格,<span itemprop="price">必須緊跟價格的價值,但不併有多種優惠的時候,應該只是一個。從Google的結構化數據測試工具看目前的測試結果有5個錯誤,每個狀態價格缺失

問題似乎是,開始的每個部分在開始時都有一個單獨的'http://schema.org/Offer' - 因此它期望5個價格,其中每個優惠都有一個。

您需要做的是聲明http://schema.org/Offer' **once**, for example an extra`,它會一直保持打開狀態,直到添加所有報價值。

<div itemscope itemtype="http://schema.org/Product"> 
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> 
<div class="breadcrumb"> Item category:<span itemprop="category"> <a href="https://www.pchounds.com/browse.php?id=1">All</a> > <a href="https://www.pchounds.com/browse.php?id=313">Electronics</a> > <a href="https://www.pchounds.com/browse.php?id=857">Audio</a> > <a href="https://www.pchounds.com/browse.php?id=879">Audio Components</a> > <a href="https://www.pchounds.com/browse.php?id=899">Speakers</a></span>  
</div> 
<div class="row"> 
    <div class="span3" style="text-align:center"> <img class="img-polaroid" itemprop="image" src="https://www.pchounds.com/getthumb.php?w=120&fromfile=uploaded/82627/82627.jpg" border="0" alt="title" align="center"><br> 
    </div> 
    </div> 
</div> 
<div class="span5"> 
<h1 itemprop="name" style="line-height:24px;">Creative Labs Speaker GigaWorks T20 Series II Systems 2.0 EPS complian</h1> 
<div><!-- schema.org/Offer removed --> 
    <em> 
    <p><small>Buy Now:  
    <span itemprop="price"><b>108.91</b> <a href="https://www.pchounds.com/converter.php?AMOUNT=108.91" alt="converter" class="new-window">USD</a></span></small></p> 
    </em> 
</div> 

<div class="span5"> 
<h1 itemprop="name" style="line-height:24px;">Creative Labs Speaker GigaWorks T20 Series II Systems 2.0 EPS complian</h1> 
<div> <!-- removed http://schema.org/Offer --> 
<em> 
<p><small>Buy Now:  
<span itemprop="price"><b>108.91</b> <a href="https://www.pchounds.com/converter.php?AMOUNT=108.91" alt="converter" class="new-window">USD</a></span></small></p> 
</em> 
</div> 
Shipping fee: <b>8.00</b> <a href="https://www.pchounds.com/converter.php?AMOUNT=8.00" alt="converter" class="new-window">USD</a><br /> 
<small>Ends within: 
<span id="ending_counter"><span class="errfont">closed</span></span><br /> 
<p> Seller location: United States<br /> 
    <div> <!-- removed http://schema.org/Offer --> 
    <b>Payment methods:</b><span itemprop="acceptedPaymentMethod"> PayPal</span> </p> 
</div> 
    </small> 

... 

</div> 
相關問題