I'm trying to get the cost of each product on an order summed together into a single value, not sure what I'm doing wrong but it's not returning any values.
I should note that I'm able to pull other item details from the order such as prices, skus, etc.
// I'm passing $order info via observer
$itemCollection = $order->getItemsCollection();
foreach($itemCollection as $item) {
// Get Product Costs
$productCost += $item->getCost();
}
$productCost
is returning null, any ideas why?