Tôi nghĩ rằng cách chính xác để đánh dấu kịch bản cụ thể này là bằng cách lồng một số Offers vào bên trong một Product. Để thêm thông tin bổ sung cho từng Ưu đãi, hãy sử dụng IndividualProduct. Tôi không chắc chắn 100%, nhưng điều này dường như hoạt động tốt trong Công cụ kiểm tra dữ liệu có cấu trúc của Google.
Dường như schema.org vẫn đang được cập nhật với các cách mới để đánh dấu sản phẩm của bạn. Dự án schema.org đã lấy rất nhiều cấu trúc từ từ vựng sản phẩm thương mại điện tử Good Relations. Xem E-commerce SEO Using Schema.org Just Got A Lot More Granular để biết thêm thông tin về các mục từ vựng mới.
Giả sử chúng tôi muốn liệt kê thông tin về hạt cà phê Sumatra để bán trên trang web. Chúng tôi muốn bán hai kích cỡ khác nhau (12 oz và 16 oz.) Với giá khác nhau cho mỗi loại.Tuy nhiên, cả hai kích thước sản phẩm phải có cùng một hình ảnh ('chỉ là một hạt cà phê) và tên. Cấu trúc sẽ trông giống như sau:
Product (name, description, and image)
aggregateRating
Offer (price and priceCurrency)
IndividualProduct (sku and weight)
Offer (price and priceCurrency)
IndividualProduct (sku and weight)
Sao chép và dán nội dung sau vào Google Structured Data Testing Tool để xem cách Google sẽ dịch HTML.
jsFiddle display
<article class="product" itemscope itemtype="http://schema.org/Product">
<div class="images">
<a href="images/product.jpg">
<img alt="Sumatra Coffee Beans" itemprop="image" src="images/product.jpg">
</a>
</div>
<div class="content">
<header>
<h1 itemprop="name">Sumatra Coffee Beans</h1>
</header>
<div class="code">
<span class="label">Item Number:</span>
<span itemprop="productID">sumatra-coffee</span>
</div>
<div itemprop="description">
<p>Error 418</p>
</div>
<div class="reviews" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<div class="details">
Rated <span itemprop="ratingValue">4.5</span>/5
</div>
<div class="count">
(<span itemprop="reviewCount">9</span> reviews)
</div>
</div>
<div class="offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/IndividualProduct">
<span class="sku" itemprop="sku">scb-ov1</span>
– (<span itemprop="weight">12 oz.</span>)
</div>
<div class="price">$<span itemprop="price">14.99<span></div>
<meta content="USD" itemprop="priceCurrency">
</div>
<div class="offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/IndividualProduct">
<span class="sku" itemprop="sku">scb-ov2</span>
– (<span itemprop="weight">16 oz.</span>)
</div>
<div class="price">$<span itemprop="price">20.99</span></div>
<meta content="USD" itemprop="priceCurrency">
</div>
</div>
</article>
Ví dụ khác là tài liệu hoặc kết thúc. Ví dụ như các vòi nước cùng đi vào, chrome, niken, đồng, và vàng tấm, mỗi với giá riêng của họ. – linuxdan