Re: Offer data in separate places in HTML

Dear Emile,

You may encode this way:

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

  <span itemprop="name"> Kenmore White 17'' Microwave</span>
  <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"
itemref="ns:availability" >
  <span itemprop="price">$55.00</span>
  </div>
</div>
<div>
  Product description:
  <span id="ns:description" itemprop="description">0.7 cubic feet
countertop microwave.
  Has sixt preset cooking categories and convenience features like
  Add-A-Minute and Child Lock.
  </span>
  <link id="ns:availability" itemprop="availability" href="
http://schema.org/InStock" rel="contents" />In Stock
</div>

Regards,

Cosmin


On Wed, Apr 3, 2013 at 10:29 PM, <lapaz@gmx.net> wrote:

> I have a product with an offer but the price and the stock information are
> in different places in the HTML. How can I handle this?
>
>
>    1. <div itemscope itemtype="http://schema.org/Product">
>    2.   <span itemprop="name">Kenmore White 17" Microwave</span>
>    3.
>    4.   <div itemprop="offers" itemscope itemtype="http://schema.org/Offer
>    ">
>    5.     <span itemprop="price">$55.00</span>
>    6.
>    7. >>> I don' want the availability here
>    8.
>    9.   </div>
>    10.
>    11.   Product description:
>     <span itemprop="description">0.7 cubic feet countertop microwave.
>      Has six preset cooking categories and convenience features like
>      Add-A-Minute and Child Lock.</span>
>
>
>    1.   <div itemprop="offers" itemscope itemtype="http://schema.org/Offer
>    ">
>    2.     <link itemprop="availability" href="http://schema.org/InStock"
>    />In stock
>    3.
>    4. >>> The availablity is here. Is it correct to split the offer-data?
>    5.
>    6.   </div>
>    7.
>
>
> Emile
>
>

Received on Thursday, 4 April 2013 09:59:06 UTC