I would suggest adding the rollup field in your product entity to get the sum of all ordered product quantity. in your rollup configuration choose order line item to calculate rollup and in the action choose product quantity with sum
↧