Customizing the product availability in Shopify for JSON-LD for SEO

Shopify products are assumed to be either in stock or out of stock depending on their inventory levels.

That’s usually good enough for most stores but sometimes you need more options. Especially with Google Merchant Center where you might be running ads for preorders.

Product availability options

By default JSON-LD for SEO will use the data from Shopify for your product’s availability. That will be either InStock or OutOfStock.

If you’d like to use a different option, JSON-LD for SEO supports all of the ItemAvailability options in At the time of this writing those are:

  • Discontinued
  • InStock
  • InStoreOnly
  • LimitedAvailability
  • OnlineOnly
  • OutOfStock
  • PreOrder
  • PreSale
  • SoldOut

If you’d like to change the availability of an item to be different than the standard InStock/OutOfStock, here’s how.

1. Install a metafields tool

JSON-LD for SEO uses Shopify metafields to configure the availability. Metafields are a common way to store extra data about things that Shopify hasn’t built a user interface for yet.

Metafields tools are apps that let you create, update, and manage the metafields for your store.

Here’s a limited list of metafield tools, you can use any one you want because the end result will be the same.

2. Find your product

Using the tool, find one of your products you want to customize.

3. Create a new metafield

Once you’ve found the product with the metafield tool, you’ll want to add the following data. Let’s say you wanted to mark it as a PreOrder product, you’d set the value to PreOrder.

namespace: jsonld
key: availability
value: PreOrder
type: string (some tools might not use the type field)

You can use whatever type you want from’s list above. Just use the value (PreOrder) and not the full url (, JSON-LD for SEO will automatically add the url part for you

4. Test the new data

Once that’s done you can test the product in Google’s Structured Data Testing tool. You should be able to see the availability updated there right away.

Then you’ll have to wait for Google Search to recrawl and reanalyze the page. Once that happens, you should be good to go.

Reverting back to the regular product availability

If you need to revert back to the regular in-stock/out-of-stock availability, just find that metafield and delete it. JSON-LD for SEO will automatically revert back to the regular availability logic.

Get more organic search traffic for your Shopify store

JSON-LD for SEO icon

Increase organic SEO traffic through Google's Rich Results. One click allows search engines and others to understand your store and products.

Install JSON-LD for SEO