Could anyone help me write a bit of code that would total up all the product stock quantities I have on the shop to tell me how many items I have in total.
for example
product 1 - out of stock
product 2 - 1 in stock
product 3 - 3 in stock
product 4 - 4 in stock
product 5 - 1 in stock
product 6 - out of stock
product 7 - 7 in stock
product 8 - 2 in stock
8 products - 18 items in stock
I'm after the total number in stock, is it possible to generate this number?
Bookmarks