I have created a new custom product field type using the ProductFieldTypeProvider and it works like a charm on products.
I can see that the same field type can be chosen for order fields too, but how can I get the order object through the same field type provider?
To get the product object I use the overrided method of GetProductValue but I guess I dont get the order object through that method?
What I'm trying to do is to make a new order field that calculates the coverage margin for the whole order.
And to do that I need to loop through the orderlines. Maybe there is a better way than using order fields?
Please point me in the right direction :)