Skip to content

Instantly share code, notes, and snippets.

@KittenCodes
Last active January 30, 2023 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save KittenCodes/ec2b90ca318d17d7f5a0e7e28e3ed5a6 to your computer and use it in GitHub Desktop.
Save KittenCodes/ec2b90ca318d17d7f5a0e7e28e3ed5a6 to your computer and use it in GitHub Desktop.
Update WooCommerce Price & Stock levels with WP All Import

Update WooCommerce price & stock levels with WP All Import

You will need an import file that contains the new stock value, price information 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, add the new price information to the General tab (https://d.pr/i/P6XQhC) and the new stock value to the Inventory tab: 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 _price, _regular_price, _sale_price, _stock and _manage_stock only: https://d.pr/i/c1iZm7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment