# How does inventory work in Shopify?

> Each variant has its own stock, counted per location; Shopify can track it or not, and can keep selling when it reaches zero, which decides whether the variant shows as available.

URL: https://www.smootify.io/glossary/inventory

In Shopify, stock belongs to the [variant](https://www.smootify.io/glossary/variant), not to the product: the Sand shirt in M has its own count. And it is counted per **location**, each warehouse or shop that holds stock.

Two settings on each variant decide what “available” means:

- **Track quantity.** Off, Shopify does not count, and the variant is always available.
- **Continue selling when out of stock.** On, the variant stays available at zero, for pre-orders or products made to order. The stock goes below zero.

A variant is **available for sale** when its stock is above zero, or it is not tracked, or it can be sold at zero. Orders lower the stock, and returns or new deliveries raise it.

## In Webflow terms

Webflow Ecommerce keeps a simple count per variant. In a Smootify store the count stays in Shopify, and the Webflow page reads it live, so it is never out of date.

## In Smootify

- `condition="out-of-stock"` shows an element only when the selected variant cannot be bought, such as a back-in-stock form in place of the add-to-cart button; `in-stock` and `low-stock` work the same way;
- `variant="stock"` shows the count, and `product="stock"` the count of all variants together. The Headless storefront needs its Storefront API permission for stock levels;
- `store-availability` shows the stock in the shops that offer local pickup.

More in [The product page](https://www.smootify.io/docs/build/product-page) and [Store availability](https://www.smootify.io/docs/features/store-availability).
