I see that when I print my Magento PDF invoice for an order, I get wrong names and order at the bottom of the document for price of the product, product tax, delivery costs and total fields.

Is it possible to edit thoose fields from some phtml file, or all magento pdf invoices are edited through invoice and abstract.php files?

If second option is true, how to change names and order for pdf invoice items mentioned before ?

Thanks in advance

2 Answers 2


Take a look @

You will need to rewrite order_pdf_invoice (or copying it to app/local/Mage)


Magento PDF's don't use PHTML and yes you will have to preferably override the necessary .php files to make changes to the PDF. PDF's use Zend's Zend_Pdf library and run on a coordinate system where 0,0 is the bottom left of the page.

The necessary file that will require overriding to is located \app\code\core\Mage\Sales\Model\Order\Pdf\Total\Default.php. The names can be edited by editing the necessary locale csv in app\locale\\Mage_Sales.csv however this will likely change any other instances of that text.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.