PLATFORM FIX / UPDATED 2026-12-01
Fix: variant stock missing from structured data on Shopify
Shopify's structured_data filter outputs a ProductGroup for products with variants, so each variant can carry its own offer and availability. Older or hand-coded themes often output one Offer for the first variant only, which leaves AI tools unable to tell which sizes or colours are in stock. Switch to the filter or list every variant.
How to fix it on Shopify
- Check the JSON-LD: is it a ProductGroup with hasVariant, or a single Offer?
- Replace hand-coded product JSON-LD with
{{ product | structured_data }}. Track inventory per variant (Products > variant >Inventory > Track quantity), so availability reflects real stock.- Give options descriptive names (Size: M, not Option1: M).
Good to know
Google documents ProductGroup with hasVariant and variesBy for variant markup.
Confirm the fix
Run the Rich Results Test on a product with an out-of-stock variant and confirm it shows OutOfStock on that variant only.
Then run the free 2-page preview on that product page to see what a crawler reads.
Questions
Will fixing this make ChatGPT or Google show my products?
No one can promise that. Fixing it removes one reason AI tools and search crawlers can't read your Shopify product pages. Whether they cite or recommend you is up to them.
How do I check my whole store, not just one page?
Run the free 2-page preview at substratelayer.com/#scan (no account, email or payment). The Quick Storefront Check ($29) covers up to 4 pages, the Full Storefront Assessment ($79) up to 10, and the Agency / Multi-Site Pack ($199) 5 stores.