The product page offers two sizes for each product. For example Coca-Cola 1liter and Coca-Cola 0.5liter. Above is the productname “Coca-Cola” and beneath of that comes the “Coca-Cola” description. Is it possible to insert both sizes into the schema.org markup or do i have to choose one productsize and just ingnore the other size/price?
The product page offers two sizes for each product. For example Coca-Cola 1liter and
Share
I assume that you refer to Thing > Product
Product is defined as:
In e-commerce world anything that is made available for sale is called SKU (stock-keeping unit) and product is usually a container for SKUs (I said usually, as different platforms can have different terms or data structures).
So from your description I see that your system has a product which is “A bottle of Coca-Cola” with two SKUs:
I would use information of the SKUs for
schema.orgProduct.Some
schema.orgattributes comes from parent product (in your case A bottle of Coca-Cola) e.g.url(assuming you have two SKUs: 1-litter and 0.5-litter on the same page) ordescription(assuming you have generic description coming from product). But some other attributes likeweight(orsize/price) will be specific for each bottle. There is alsoskuattribute which usually refers to your SKU number.As a side note, you can find similar challenge when building, say, Google Product Feed, and the similar approach will work perfectly fine.
I hope that will help.