so i made a script that does this:
Update stock of woocommerce products from external csv.
The code is:
$csv = array(