Approximate calculation of logistics cost for each item on the bill to pay

If you do not know the exact cost of transporting each individual consignment of products in you bill to pay, but you know the approximate cost for the entire volume and weight of the products, then you can evenly distribute the sum total between the items according to their volume and weight.

Edit and run test to see results in console.