How can I get order item name,price and qty from a Magento 2 Order
like Magento 1.X you can use “getAllItems” method to retrieve all items and then get name,price and qty of each item.
foreach ($order->getAllItems() as $item) { $name = $item->getName(); $price = $item->getPrice(); $qty = $item->getQtyOrdered(); }