• Resolved wildblumenliebe

    (@wildblumenliebe)


    Hello,
    the export of products to csv file is not working anymore for the column “stock”. Everthing else is working (ID, SKU, Name, ….) but for “stock” only “null” is exported.

    WooCommerce Version 10.1.2 , WordPress 6.8.2.

    Any ideas ? Your help is very apreciated.
    Best Regards

    Henning


    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support LovingBro (woo-hc)

    (@lovingbro)

    Hi @wildblumenliebe,

    I see what you mean—having the “stock” column come out as null while everything else exports fine is confusing. Let’s quickly narrow it down:

    First, a couple of clarifications that commonly explain null:

    • Are these simple products or variable products? For variable products, stock is usually managed on the variation level, so the parent product’s stock will export as null. You’d need to include/export variations to see their stock.
    • Is stock management enabled?
      • Globally: WooCommerce → Settings → Products → Inventory → “Enable stock management”.
      • Per product: Edit product → Inventory → “Manage stock” checked and a Stock quantity set. If “Manage stock” is off (or only “In stock/Out of stock” is used), the exporter will show null for the “stock” column.

    Quick checks to try:

    1. One-product test Create a simple test product, enable Manage stock, set quantity (e.g., 7), save, then export including the “stock” column. If it shows “7”, the exporter is fine and your previous rows were null because stock wasn’t managed on those items (or they’re variable parents).
    2. Variations vs. parents If most of your catalog is variable, run an export that includes variations and check the “stock” column on the variation rows.
    3. Conflicts / customizations If the above doesn’t explain it, temporarily deactivate all plugins except WooCommerce and export again. Some inventory/CSV tools hook into the exporter (e.g., via woocommerce_product_export_column_stock) and can override values.

    If you can, please share:

    • Whether the affected items are simple or variable.
    • A small CSV snippet (2–3 rows) showing a product you know has stock set but exports null.
    • Your WooCommerce → Status → System Status Report (you can pastebin it again).

    With that, we can point to the exact cause and get your stock values exporting correctly.

    Thread Starter wildblumenliebe

    (@wildblumenliebe)

    Hi @lovingbro,

    you made my day. Your quick checks really helped sorting out the problem.

    Thanks for the quick and good help.

    Best regards

    Henning

    Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi @wildblumenliebe,

    We’re so glad the quick checks helped sort things out and that your export is working properly again.

    If you have a moment, we’d truly appreciate it if you could leave us a review. It helps others discover the support and tools we offer, and it means a lot to the team: https://wordpress.org/support/plugin/woocommerce/reviews/

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.