Hide sold-out Shopify variants

Variant Inventory Policy DENY hides purchase when qty is 0. CONTINUE sells when out of stock. This is not product Status.

Use this so a size cannot be bought at 0. Update inventory sets the quantity. Update status drafts or archives the whole product.

Columns

NeedColumns
MinimumHandle, Variant SKU, Variant Inventory Policy.
RecommendedHandle, Variant SKU, Variant Inventory Qty or Inventory Available: Location, Variant Inventory Policy.
Empty cellsEmpty policy is ignored. Empty qty is a different column.

Steps

  1. Set Variant Inventory Policy to DENY on variants that must not sell at 0. CONTINUE to allow overselling.
  2. Set quantities in the same file or a separate inventory import.
  3. Import, Dry run on.
WOOL-L is at 0 with DENY: not purchasable. MUG-W at 0 with CONTINUE: still purchasable.

What a dry-run comment looks like

Would update. Policy and qty write on the live run.

What fails

  • A policy value other than DENY or CONTINUE.
  • Expecting qty 0 alone to draft the product. Set Status or Published if that is the job.

Draft the whole product at quantity 0

Export Products with Variant Inventory Qty. Keep rows where every variant is 0. Set Status DRAFT or Published FALSE. That is a spreadsheet filter, not a hide-sold-out toggle. Update status.

Ceramic mug is at 0. Status DRAFT unpublishes the product. DENY on a variant is the other path, above.

FAQ

Does qty 0 hide the product?
No. DENY stops purchase of that variant. Status DRAFT or Published FALSE hides the product. They are different columns.
Export filter?
Set Filters on Export uses Shopify search. Inventory quantity filters depend on what Shopify search allows for products. You can also filter in Excel after export.
CONTINUE vs DENY?
CONTINUE lets the variant sell at 0. DENY stops purchase. Neither drafts the product.
Delete the variant instead?
Delete variants.