I need a piece of code/plugin to WP All Import or another plugin, so I can Update the Stock in my WooCommerce Wordpress shop.
It will be nice if it can be automatic update - in the future, but not so importent.
I have a CSV file with "sku" (unik number), stock and price. That can be match with information on th e product.
I need a plugin or a code to WP all import, so I simply can update the quantity of the stock with these terms:
- if the stock is below 0, change the stock status to 'out of stock'
- if the stock is above 0, change the order status to 'in stock' within WooCommerce.
- update the my price (then I have a plugin, to calculate the sales price automatic)
- BUT if the item isn't present in the csv- file, it have to be set to 0 and "out of stock"
- And if possible - I will like to get change the badge on the webshop "out of stock" to be translatede to danish - because my site is on danish, so don't like the english text?
The CSV files got around 9000 products, but only about 3500 need to be update.
Some of the products are variable and some are simple but they should all have a SKU.
At the moment I can manual do this update, but it will be nice to set it up, so it can be updatede as a automatic process or auto start via a Cron Job.
I have uploaded an example of the CSV that would need updated each hour.