I'm trying to get the price of a specific sku if it exists on an order, here's what my current code is:
$itemCollection = $order->getItemsCollection();
foreach($itemCollection as $item) {
$sku = $item->sku;
if($sku == 'MySku') {
$price = $item->getPrice;
}
}
I believe $price = $item->getPrice;
is incorrect, I'm just not sure how to grab the line-item price for MySku
from the order.
Any help would be great, thanks!