mage-snippet

Load Order by Increment Id & Retrieve Items

You can load an order by increment id using the snippet below. You can then loop through the items to use further in your code.