The script grabs the values from a suppliers database and matches the UID or SKU of each size to the quantity accordingly.
It works and updates each of the sub products (each size of the product available) quantity, but each time it's ran the parent product quantity is set to 0, even say if each of the 5 subproducts has a quantity of 5, it would still read 0 not 25...
The only time the parent quantity updates to read the sum of the subproducts qtys, is when I go to edit (in admin>products/categories) and then save again (click update) this seems to trigger a script that totals the subproducts and lists this in the parent products quantity... obviously this would take too long to do on EACH prod.
The parent qty is the one CRE uses to list in order of qty, so each time I run my sync script (daily) it sets ALL parent prods to qty=0 so therefore the 'list in order of quantity' is useless. I hoping I could find the script that seems to be triggered when I edit and update each product and run it so it updates all products at once... So yes it is how you thought
