Get more organic search traffic for your Shopify store
JSON-LD for SEO is a premium app that has been designed and optimized to get you results in Google, fast.
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.
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 Schema.org. At the time of this writing those are:
If you’d like to change the availability of an item to be different than the standard InStock/OutOfStock, here’s how.
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 allow you to create, update, and manage the metafields for your store.
You can use Shopify’s Metafields or your metafield tool of choice.
Using the tool, find one of the products you want to customize.
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 Schema.org’s list above. Just use the value (PreOrder
) and not the full URL (https://schema.org/PreOrder
), JSON-LD for SEO will automatically add the URL part for you.
This is case sensitive so make sure you type it in as listed in the bullet point list above.
I’ve included an example below using Shopify’s Metafields.
Once that’s done you can test the product in Rich Results 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.
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.