Hello,
I am trying to count the quantity of several products in a line item order (WooCommerce). I.e. the line items in the order look like:
Product 1 × 3, Product 2 × 1, Product 3 × 2
So:
Product 1 was ordered 3 times
Product 2 was ordered once
Product 3 was ordered 2 times
And the result/output should be:
6
I am trying to count all quantities together. I already tried to solve this with the Formatter, but didn’t have success. Is it possible to do this with JavaScript or Phyton? Or is there another way?
Thanks a lot for your support,
M.