Shipping costs spread on product lines -> Landed C

How to assign shipping costs to multiple projects ?
How to spread costs to Product lines ?