Schema markup for fashion boutiques
Schema markup for fashion boutiques, sizes and colors included
Use ProductGroup for each garment, with every size and color you sell listed as its own Product with its SKU, price and stock. Then search engines and assistants can tell that the trousers come in black as well as sage, and that the medium in sage is sold out.
The type to use
ProductGroup
ProductGroup is schema.org's parent for a set of variants, and it's a kind of Product, so brand and material sit on it once. The boutique itself is a ClothingStore if shoppers can walk in, or an OnlineStore if you only sell online.
ProductGroup on schema.orgWhat to include
The properties that matter for fashion boutiques
Most important first. Fill in what's true for you and leave out the rest; every value must also be on the page.
- hasVariant
- One Product per size and color combination, each with its own sku, size, color, image and Offer, so a sold-out medium doesn't make the whole style look unavailable.
- variesBy
- What changes between variants, as schema.org links: https://schema.org/size and https://schema.org/color. Leave color out if the garment comes in one.
- productGroupID
- The style code that ties the variants together, usually the parent SKU in your shop system.
- name
- The garment without size or color (“Wide-Leg Linen Trousers”). Each variant's name adds those.
- material
- Fabric is how clothes get searched: “linen”, “merino”, “organic cotton”. Copy the composition from the care label.
- brand
- Your own label, or the label you stock. A boutique carrying several labels names the label here, never the shop.
- description
- Rise, inseam, how it runs and how the fabric feels, in the same words as the fit notes on the page.
- url
- The style's page. Give each variant's offer the address that opens with that size and color selected, if your shop has one.
Example
Copy, then make it yours
This is the markup for a made-up business. Replace every value with your own before you use it.
- Change every name, address, number and link to your own, and delete lines that don't apply.
- Paste it into your site's header code (website builders call it “code injection” or “custom code”), or let ShopCited add it for you.
- Check it with Google's Rich Results Test or the Schema Markup Validator.
ProductGroup JSON-LD
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ProductGroup",
"name": "Wide-Leg Linen Trousers",
"description": "High-rise wide-leg trousers in midweight European linen with an elastic back waist and a 30-inch inseam. Runs true to size.",
"url": "https://www.example.com/products/wide-leg-linen-trousers",
"brand": {
"@type": "Brand",
"name": "Hollis Row"
},
"material": "100% linen",
"productGroupID": "WLT-24",
"variesBy": [
"https://schema.org/size",
"https://schema.org/color"
],
"hasVariant": [
{
"@type": "Product",
"sku": "WLT-24-SAGE-S",
"name": "Wide-Leg Linen Trousers, Sage, S",
"size": "S (US 4–6)",
"color": "Sage",
"image": "https://www.example.com/images/wlt-sage.jpg",
"offers": {
"@type": "Offer",
"url": "https://www.example.com/products/wide-leg-linen-trousers?color=sage&size=s",
"price": "128.00",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
},
{
"@type": "Product",
"sku": "WLT-24-SAGE-M",
"name": "Wide-Leg Linen Trousers, Sage, M",
"size": "M (US 8–10)",
"color": "Sage",
"image": "https://www.example.com/images/wlt-sage.jpg",
"offers": {
"@type": "Offer",
"url": "https://www.example.com/products/wide-leg-linen-trousers?color=sage&size=m",
"price": "128.00",
"priceCurrency": "USD",
"availability": "https://schema.org/OutOfStock"
}
},
{
"@type": "Product",
"sku": "WLT-24-BLK-S",
"name": "Wide-Leg Linen Trousers, Black, S",
"size": "S (US 4–6)",
"color": "Black",
"image": "https://www.example.com/images/wlt-black.jpg",
"offers": {
"@type": "Offer",
"url": "https://www.example.com/products/wide-leg-linen-trousers?color=black&size=s",
"price": "128.00",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
}
]
}
</script>Watch out
Mistakes fashion boutiques make with markup
Each color as a separate garment
Marking up sage and black as unrelated products splits their details and makes them look like two styles. Keep them in one ProductGroup, even when each color has its own page.
One stock status for the whole style
Marking the style InStock while the medium is gone sends shoppers to a size you can't sell. Availability belongs on each variant's Offer.
Size names only your shop uses
Sizes like “1”, “2” and “3” mean nothing outside your store. Give each variant's size as the label size plus its usual equivalent, such as “S (US 4–6)”, and use the same on the page.
Also worth adding
- ClothingStore: On your home or contact page, with your address and opening hours if shoppers can visit.
- ItemList: On lookbook and collection pages, listing the styles in the order the page shows them.
FAQ
Fashion boutiques: markup questions
Type to search these questions, or ask anything about getting found on Google and AI.
Each color has its own URL. Can they still be one group?
Yes. Each color's page can carry a Product that names the group's code in inProductGroupWithID, so the colors are read as one style. Variants don't have to share a page to share a group.
Do I need a barcode for every size?
Only if the garments have them. Labels you buy in often carry one barcode per size and color, so add each to its variant; your own small-run pieces can rely on SKUs.
Should the size chart be in the markup?
No. schema.org has a SizeSpecification type for size systems, but the measurements people check belong on the page as text. The markup only needs the size each variant is sold as.
More for fashion boutiques
- SEO and AI search for fashion boutiquesWin searches for fits, fabrics and occasions — with product copy, size details and variant markup that answer before shoppers ask.Read
- Questions your website should answerWhat customers ask Google and AI assistants about fashion boutiques, and what a good answer includes.Read
Someone is asking for your product right now.
Check your store free, then press Optimize. Back to the orders.