Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How can I configure the value of "currentlyNotInStock" field of a product variant ?

How can I configure the value of "currentlyNotInStock" field of a product variant ?

tiepbui
Shopify Partner
3 0 1

When I use Storefront API to get a variant from my development store -->  there is a field named currentlyNotInStock and I see that its value is always false regardless of its settings in the store backend. While as you can see in your official API documentation --> The description for this boolean field is: "Whether a product is out of stock but still available for purchase (used for backorders).

So can anyone help me to explain what this field means more clearly and how/where I can configure its value in my store backend ?
Many thanks.
TBJM
Reply 1 (1)

culverizer
Visitor
2 0 0

currentlyNotInStock evaluates to true when the inventory option "Continue selling when out of stock" is checked on a product variant and the quantity available is <= 0.