Archive for February, 2011


Print Coupon Code or Gift Certificate on Magento Invoice PDF

One of my clients recently requested adding any applied coupon codes or gift certificate codes to the invoice printed from Magento.  This is actually a pretty quick and easy change.  Below are the steps required to implement this change in Magento Copy /app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php to /app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php Find the line $page = $this->insertTotals($page, $invoice); in the getPdf function.  This was line 107 for ...