Does anyone have any idea what I need to add in order to solve the issues for the following piece of code?
<div class="product-info-main">
<div class="product attribute overview">
<div class="value" itemprop="description">
KISS KISS BANG BANG
</div>
</div>
<div class="product-info-price">
<div class="page-title-wrapper product">
<h1 class="page-title"><span class="base" data-ui-id="page-title-wrapper" itemprop="name">FAUX FUR TEDDY COAT</span></h1>
</div>
<div class="price-box price-final_price" data-price-box="product-id-9586" data-product-id="9586" data-role="priceBox">
<span class="normal-price"><span class="price-container price-final_price tax weee" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span class="price-wrapper" data-price-amount="350" data-price-type="finalPrice" id="product-price-9586"><span class="price">€350.00</span></span></span></span>
<meta content="350" itemprop="price">
<meta content="EUR" itemprop="priceCurrency">
</div>
</div>
</div>
The errors are for the following pieces of code:
<div class="value" itemprop="description">KISS K...
<span class="base" data-ui-id="page-title-wrapper" itemprop="name">...
<span class="price-container price-final_price tax weee" itemprop="offers" itemscope itemtype="http://schema.org/Offer">...
<meta itemprop="price" content="350" />...
<meta itemprop="priceCurrency" content="EUR" />...
2
Answers
Your price and priceCurrency are out of scope of the Offer. The working code would be probably:
Removing everything which is not relevant for Microdata, you have:
Unless you have a parent Microdata item (with
itemscope
and possiblyitemtype
) not shown in your snippet, none of youritemprop
attributes is associated with an item, which is invalid.I assume your data is about a
Product
, so it should be something like this: