In Stock
{% else %}Out of Stock
{% endif %}`."},{"@type":"HowToStep","position":6,"text":"Save changes, preview a product page, then test with Google's Rich Results Test."}]},{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"How do I fix seo product missing stock status on Shopify?","acceptedAnswer":{"@type":"Answer","text":"In your Shopify admin, go to Online Store → Themes → click 'Edit code' on your active theme. Open the file `sections/product-template.liquid` (or `templates/product.liquid` / `sections/main-product.liquid` depending on your theme). Search for `availability` or `schema.org` to find the existing JSON-LD block. If none exists, find the closing `` tag of any Product schema block. Within the `offers` object, set the availability dynamically: `\"availability\": \"https://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}\"`. For the visible label, locate the area near your Add-to-Cart button in the same template and add: `{% if product.available %}In Stock
{% else %}Out of Stock
{% endif %}`. Save changes, preview a product page, then test with Google's Rich Results Test."}},{"@type":"Question","name":"What is seo product missing stock status?","acceptedAnswer":{"@type":"Answer","text":"Stock availability tells shoppers — and search engines — whether a product can actually be purchased right now. There are two places it needs to appear: (1) a human-readable label on the page itself (e.g. \"In Stock\", \"Out of Stock\", \"Only 3 left\"), and (2) a machine-readable `availability` field inside your Product schema markup (the invisible JSON-LD code that Google reads). When either is missing, Google has no reliable way to understand your inventory status. The `availability` field accepts standardised values from schema.org: `InStock`, `OutOfStock`, `PreOrder`, `LimitedAvailability`, and a few others."}}]},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Issue library","item":"https://seolz.com/learn"},{"@type":"ListItem","position":2,"name":"Seo product missing stock status","item":"https://seolz.com/learn/seo/seo-product-missing-stock-status"},{"@type":"ListItem","position":3,"name":"Shopify","item":"https://seolz.com/learn/seo/seo-product-missing-stock-status/shopify"}]}]How to fix seo product missing stock status on Shopify
Add visible stock availability text to each product page and set the correct `availability` property (InStock, OutOfStock, or PreOrder) in your Product structured data (JSON-LD schema).
Steps for Shopify
- In your Shopify admin, go to Online Store → Themes → click 'Edit code' on your active theme.
- Open the file `sections/product-template.liquid` (or `templates/product.liquid` / `sections/main-product.liquid` depending on your theme).
- Search for `availability` or `schema.org` to find the existing JSON-LD block. If none exists, find the closing `</script>` tag of any Product schema block.
- Within the `offers` object, set the availability dynamically: `"availability": "https://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}"`.
- For the visible label, locate the area near your Add-to-Cart button in the same template and add: `{% if product.available %}<p class='stock-status'>In Stock</p>{% else %}<p class='stock-status'>Out of Stock</p>{% endif %}`.
- Save changes, preview a product page, then test with Google's Rich Results Test.
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "Example Product Name",
"offers": {
"@type": "Offer",
"url": "https://example.com/products/example-product",
"priceCurrency": "USD",
"price": "29.99",
"availability": "https://schema.org/InStock"
}
}What is seo product missing stock status?
Stock availability tells shoppers — and search engines — whether a product can actually be purchased right now. There are two places it needs to appear: (1) a human-readable label on the page itself (e.g. "In Stock", "Out of Stock", "Only 3 left"), and (2) a machine-readable `availability` field inside your Product schema markup (the invisible JSON-LD code that Google reads). When either is missing, Google has no reliable way to understand your inventory status. The `availability` field accepts standardised values from schema.org: `InStock`, `OutOfStock`, `PreOrder`, `LimitedAvailability`, and a few others.
Google requires a valid `availability` value in Product schema to show your products in Shopping rich results and the free Google Shopping tab — omitting it disqualifies your listings from these high-visibility surfaces and directly costs you free traffic and clicks. Shoppers who can't see whether an item is in stock are more likely to leave without buying, increasing your bounce rate and hurting conversion rates. Accurate availability also prevents frustrating "out-of-stock" surprises at checkout, which destroy customer trust and generate negative reviews. Keeping availability current protects against Google manual actions for "misleading structured data" if an out-of-stock product is marked as in-stock in schema.
See the complete Seo product missing stock status guide for every platform and the full background.
Not sure if your Shopify store has this?
Run a free SEOLZ audit — we’ll find seo product missing stock status and every other issue across your whole site.
Scan my site free