Formula recipe

Auto-draft sold-out Shopify products with one formula

Put one formula in the Status column. Shopify products at zero stock move to Draft, so sold-out items leave your storefront, and the rest stay Active.

4.9starsBuilt for Shopify
FlexSync video: How to auto-draft sold-out Shopify products with one formula
How it works

Zero stock in the Sheet, Draft in Shopify

FlexSync reads the formula result, not the formula. Shopify sees DRAFT and hides the product from your store.

  • No more sold-out products on collection pages
  • One formula, filled down the whole column
  • Works on every product in the Sheet
Shopify admin · Black Swimsuit
StatusDraft
Inventory0 in stock
Updated byFlexSync ✓
Illustrative example
Copy and paste

Ready-to-use variations

Native Google Sheets formulas. Paste one in the editable column and fill down.

=IF(T2=0,"DRAFT","ACTIVE")
Draft at zero

Hide a product as soon as it sells out.

=IF(T2<=2,"DRAFT","ACTIVE")
Draft before you run out

Pull products at two units left to avoid overselling.

=IF(AND(T2=0,Z2="DENY"),"DRAFT","ACTIVE")
Respect backorders

Only draft products that can't sell when out of stock.

Good to know

Tips before you start

01Use the right words

Shopify status accepts ACTIVE, DRAFT or ARCHIVED. Any other word is rejected and the cell resets.

02After a restock

Fill the Status formula down again after you update stock. FlexSync then sends Active back to Shopify.

03Counts toward your plan

Each formula cell counts as one formula-driven cell in your plan's allowance.

Setup

Up and running in three steps

1

Turn on formulas

In FlexSync, open Settings, then Advanced Settings, and switch on Allow Sheet Formula.

2

Paste the formula

Add it to the first row of the editable column you want to change.

3

Fill down

Drag it down the column. FlexSync sends each result to Shopify.

New to formulas in FlexSync? Our formula guide covers setup, supported columns and plan allowances.

Read the formula guide

Frequently asked questions

Will a drafted product disappear from my store?

Yes. Draft products are hidden from all sales channels until you set them back to Active.

Which stock column should I use?

Use On hand or Available. Available is On hand minus committed orders.

Can I archive instead of draft?

Yes. Replace "DRAFT" with "ARCHIVED" in the formula.

Let your formulas
run your store

Install FlexSync free, turn on Allow Sheet Formula and try this recipe on your own catalogue.

Install for Free Compare plans Free plan · 14-day free trial on paid plans