Cost of good shipping question

So if i purchase an item for resale, the shipping  cost will just be added to the total cost of that one item as the total cost of goods for that 1 item. But what if i purchase a number of items for resale, do i evenly split the shipping cost to each item or does it matter?