This module isn't getting support from the original author any more. On a quick glance, your errors are due to an order object that has no products on it. You can try and solve the errors by changing the lines to
<?php
foreach ((array) $order->products as $product)
?>But that's really just a bandage... if there's an empty order making it through, there's probably a deeper issue.
