It is a bit different then method showed in previous post – this time its not transactional email sent at demand, but we will catch event fired after […]
Magento / PHP
Posted on:
Quicktip: How to send PDF invoice via transactional email in Magento?
Seems to be complex, but its not that bad: $orderModel = Mage::getModel(‘sales/order’)->load($myOrderId); $invoices = $orderModel->getInvoiceCollection(); $invoicesSet = array(); foreach ($invoices as $_invoice) { array_push($invoicesSet, $_invoice); } $pdf = […]