Re: Offer data in separate places in HTML

Hi Emile,

As per Cosmin's example, use the itemref attribute to refer to the id of
the offers.

I have found this article[1] useful in the past.

Regards

Darren

[1] http://dev.opera.com/articles/view/microdata-and-the-microdata-dom-api/


On 3 April 2013 22:29, <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 Friday, 5 April 2013 09:00:21 UTC