Check products values on order completion
Please could someone point me in the right direction to do the following?
I want after an order has been marked as completed, to run a function that will add all values of products in the order. Each product has numeric custom field. I want to add all the values of the products in the completed order.
Which hook should I use? In which way?