---
title: "Working with variants and availability"
canonical_url: "https://shop-template.nuxt.dev/blogs/news/working-with-variants-and-availability"
---
# Working with variants and availability

Published on 2026-08-11 by Nuxt UI.

A product is purchasable when at least one of its variants reports `availableForSale`. That flag combines inventory tracking, quantity and the variant's inventory policy, so the storefront never has to work it out itself.

## What the template shows

* A product with no variant for sale gets a Sold out badge on its card, and the card hides its quick add button.
* In the variant picker, a sold out value is struck through and labelled Sold out, and the add to cart button is disabled while it is selected.
* When the selected variant has five items or fewer left, the product page says how many remain instead of In stock.

## Low stock needs inventory access

Low stock comes from each variant's `quantityAvailable`. The Storefront API only returns it when the access token has the `unauthenticated_read_product_inventory` permission, so enable it on your token, or product queries fail with `ACCESS_DENIED`.

## In this store

Most variants in this demo catalogue are untracked, so they always read as available. A handful are deliberately tracked at zero, like the red Sweatpants in Small and the ocean Men's T-shirt in Medium, so you can see the sold out states in the product card and the variant picker.

## Sitemap

See the full [sitemap](https://shop-template.nuxt.dev/sitemap.md) for all pages.
