Install
Install

Hide out-of-stock Products from Shopify Store

Hide out-of-stock Products and Variants in Shopify with Matrixify

Shopify Help Center suggests hiding out-of-stock Products with Collection conditions, an app or Shopify Flow. With Matrixify you can unpublish all out-of-stock Products from the Online Store with one Import, and hide only the sold-out Variants of Products that are still in stock.

Steps in short

  1. Export Products with ID, Handle, Total Inventory Qty and the Online Store Published and Published At columns.
  2. In the file keep only the Products with Total Inventory Qty of 0 or less and set Published for the Online Store to FALSE.
  3. Import the file to unpublish the out-of-stock Products from the Online Store.
  4. To hide only the sold-out Variants, Export Variant rows with Variant Inventory Qty and set Variant Published for the Online Store to FALSE on the Variants with 0.

1. Export Products with Total Inventory Qty

In the Matrixify app Home create a new Export by using the New Export button. Select the Matrixify: Excel format and press Select Sheets to select Products.

Click on the Products sheet card to expand it and select only these columns:

  • From Basic Columns – ID, Handle and Total Inventory Qty.
  • From Sales Channels – Published: ... and Published At: .... Click the Select ... button under the column group, check Online Store and press Add.

ID tells the app which Product to update. Handle is there only to see which Product each row is.

Total Inventory Qty is the sum of the quantities of all Variants of the Product. A Product with sizes S at 0 and M at 3 has 3 and stays visible.

Matrixify Export of Shopify Products with Total Inventory Qty and Online Store Published columns

Filter Products published on the Online Store

Press the Filter button in the Products sheet card and add Published – equals to any of – Online Store to Export only the Products that are on the Online Store now.

Press Export, wait for the Export to finish and download the exported file.

2. Keep only out-of-stock Products in the file

Open the exported file. In Excel go to the Data tab and press Filter. In the Total Inventory Qty column show only the values above 0 and delete those rows.

Set Published: Online Store to FALSE in all rows. You can leave the Published At: Online Store dates as they are if there are any.

Excel file to hide out-of-stock Shopify Products from the Online Store

3. Import to unpublish out-of-stock Products

In the Matrixify app Home upload the file in the Import section. Once the file is analyzed, make sure that the sheet is detected as Products and the Product count looks correct. Total Inventory Qty shows as ignored – it is an export-only column, so it can stay in the file.

Press Import to start the Import. When it is finished, the Products are no longer on the Online Store. You can check it in the Shopify Admin, in the Publishing section of a Product.

Matrixify Import to hide out-of-stock Shopify Products from the Online Store

4. Hide out-of-stock Variants in Shopify

Products with some Variants in stock stay on the Online Store. Their sold-out Variants can be hidden one by one – Shopify shows a Variant only when both the Product and the Variant are published on that channel.

Create a new Export with the Products sheet and select only these columns:

  • From Basic Columns – ID and Handle.
  • From Inventory / Variants – Variant ID, Variant SKU and Variant Inventory Qty. Variant SKU is there only to see which Variant each row is.
  • From Variant Sales Channels – Variant Published: ..., with Online Store selected under Select ....

Add the filter Variant Inventory Qty – less than – 1. It exports every Product with at least one Variant at 0 or below, with all of its Variant rows.

Matrixify Export of out-of-stock Shopify Variants with Variant Published columns

In the exported file delete the rows with Variant Inventory Qty above 0 and set Variant Published: Online Store to FALSE in the rest. Then delete the Variant Inventory Qty column – otherwise the Import sets the stock back to the exported numbers.

Excel file to hide out-of-stock Shopify Variants from the Online Store

Import the file the same way as in step 3. Only the Variants in the file are changed. If every Variant of a Product is unpublished, Shopify hides the whole Product on that channel.

Good to know

  • Total Inventory Qty is also 0 for Products that do not track inventory, and for Products with Variant Inventory Policy set to continue, which customers can still buy. In the Variant Export, untracked Variants have an empty Variant Inventory Qty. Check these rows before the Import.
  • The Import is a one-time change. To show restocked Products again, Export with the Published filter set to not equal to any of – Online Store and set Published: Online Store to TRUE for the rows with Total Inventory Qty above 0.
  • To hide them on other channels too, for example Google & YouTube, select those channels under Select ... as well.

What to do next?