WooCommerce CSV

Fill WooCommerce In stock? with 1/0 values

2026-06-21
Task

This case prepares the In stock? column from stock_qty for the final CSV.

Short answer

Write 1 when stock is positive or the source status says in stock; write 0 otherwise.

How to do it in Eofferix

  1. Select the source column or create the output column from the specified source. stock_qtyIn stock?.

  2. Open the settings of the output column In stock?.

    Open settings: In stock?
    Real animation: opening the output column settings in the table editor.
  3. In Transformations, add the rules shown below.

    Transformations: In stock?
    Real screenshot of the Transformations block for this column.
  4. Save the settings, go to export, and check the values in the downloaded CSV.

Check target column names and accepted values against the official CSV documentation. WooCommerce CSV.

Before / after

Before

source data
SKUNamestock_qtystock_status
LAMP-1Desk lamp12
POST-1Wall poster0out of stock
MUG-1Coffee mug0in stock

After

result
SKUNameIn stock?
LAMP-1Desk lamp1
POST-1Wall poster0
MUG-1Coffee mug1

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up