Skip to content

Instantly share code, notes, and snippets.

@KittenCodes
Last active January 28, 2019 14:02
Show Gist options
  • Save KittenCodes/f86489d41978703925072554d53da5f5 to your computer and use it in GitHub Desktop.
Save KittenCodes/f86489d41978703925072554d53da5f5 to your computer and use it in GitHub Desktop.
Update stock values with WP All Import

Update WooCommerce stock levels with WP All Import

You will need an import file that contains the new stock value and the variation SKU. For this process to work correctly, your products will need to have unique SKUs.

  1. Create an "Existing Items" import to WooCommerce Products: https://d.pr/i/c5daMc
  2. On Step 3 of the import process, leave the Product Type set to Simple and add the new stock value: https://d.pr/i/iN9S5t
  3. On Step 4 of the import process, select to match on the custom field _sku and add the SKU element from your import file: https://d.pr/i/7EwWTl
  4. Also on Step 4, select to update the custom fields _stock and _manage_stock only: https://d.pr/i/qHWcxr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment