It's not working. The discount are not beeing calculated. Maybe this is a "number" / "currency" problem?
Also, totalWeight seems to be summarized on each cartItem row, but it should be summarized by the total of all the cart items rows.
I guess I need a CartTotalWeight. How do I realize this?