Skip to content

Instantly share code, notes, and snippets.

@kanlukasz
Forked from KittenCodes/updatestockprice.md
Created January 30, 2023 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanlukasz/1a61b0c130b4b565eafad6cb361a9c5c to your computer and use it in GitHub Desktop.
Save kanlukasz/1a61b0c130b4b565eafad6cb361a9c5c 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