V
V
Vlad Bazarov2015-09-28 20:30:23
Google
Vlad Bazarov, 2015-09-28 20:30:23

How to arrange structured data on the site?

There was a problem with the design of structured data. I'll give an example code below to make it clearer:

<div itemscope itemtype="http://schema.org/Product">
  <span itemprop="brand">Бренд</span>
  <span itemprop="name">Имя</span>

<!--Открываем тег "offer" -->
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <meta itemprop="priceCurrency" content="USD" />
    $<span itemprop="price">119.99</span>
<!--Тут мы закрываем тег "offer" -->
</span>

  <span itemprop="description">Описание</span>

<!--А здесь "offer" опять нужно открыть! -->

<link itemprop="availability" href="http://schema.org/InStock"/>Есть в наличии</span>

</div>

And here it turns out that the robot perceives the second "offer" as independent markup, and not as an addition to the existing itemtype.
Is there any way to show him that despite the break, "offer" still refers to the first itemtype?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2015-10-08
@e-developer

Make a hidden span/div in the "first" offer and put a description in there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question