@delpha
To markup different product sizes with schema.org, you can use the Product
schema type and include the offers
property within it. The offers
property is used to describe the offers for a product, including the availability, price, and condition.
For each size, you can create a separate Offer
item and specify the itemOffered
property with a Product
item that represents the product with that specific size. For example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
<script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Product", "name": "Example Product", "offers": [ { "@type": "Offer", "itemOffered": { "@type": "Product", "name": "Example Product - Small", "size": "Small" }, "availability": "http://schema.org/InStock", "price": "10.99", "priceCurrency": "USD" }, { "@type": "Offer", "itemOffered": { "@type": "Product", "name": "Example Product - Medium", "size": "Medium" }, "availability": "http://schema.org/InStock", "price": "12.99", "priceCurrency": "USD" }, { "@type": "Offer", "itemOffered": { "@type": "Product", "name": "Example Product - Large", "size": "Large" }, "availability": "http://schema.org/InStock", "price": "14.99", "priceCurrency": "USD" } ] } </script> |
In this example, the main Product
item represents the product as a whole, and each Offer
item represents a specific size of the product with its own availability, price, and size information.
@delpha
Note: Remember to replace "Example Product" and the corresponding size names and prices with your actual product data.
You can include additional properties in each Offer item if needed, such as color, material, or any other relevant information about the specific size of the product. Make sure to follow the schema.org documentation for the Product and Offer schema types to properly include all necessary properties and comply with the guidelines.
Additionally, ensure that you place the JSON-LD script within the appropriate location on your webpage, typically within the head section or just before the closing body tag. This will ensure that search engines and other applications can correctly interpret the structured data.
Once you have implemented the structured data markup, you can test it using Google's Structured Data Testing Tool or any other similar tool to validate the markup and ensure that it is correctly recognized by search engines and other applications that support schema.org.