How to Edit the Magento Invoice


The Magento e-commerce platform lets you create an online store for goods you want to sell. Magento comes with several critical core files, including pages that allow product upload, pages for checkout and an invoice file for billing. You can make custom additions to an invoice to personalize it for your company. To edit the Magento invoice, you must save a duplicate file and edit the PHP tags inside this file.

How to Edit the Magento Invoice
Step 1

Navigate to your Magento invoice PDF core file. You should be able to reach your Magento invoice by typing /app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php at the end of your website domain address in the domain search bar.

Step 2

Save a copy of the invoice core file, but place it in the folder ending with /app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php. Note that the address now says "local" and not "core."

Step 3

Change the PHP code of the "/app/code/local/Mage/Sales/Model/Order/Pdf/Invoice.php" file to your new specifications. If you are not very familiar with PHP code, use a code book and work very carefully to stay on track. If you find that you have accidentally deleted code that you needed, you can either delete the copied file and try again, or you can compare it to the original to try and find the deleted code.

Step 4

Save your changes by navigating away from the page back into your Magento Admin screen. The system automatically saves changes made to PHP code.

Step 5

Open your invoice in the back office by navigating to Admin, scrolling to Configuration, scrolling to Sales, and then clicking Invoice Packing Slip and Design. Monitor the changes you have made and make certain that everything is exactly the way you want it. If more changes are needed, redirect back to the PHP file.

Related Searches

Tips & Warnings

  • Magento stresses that you should not make edits to core files. Always edit a copy of the core file. This way, if something goes wrong with the invoice you edited, you will still have the original core invoice to fall back on.


Promoted By Zergnet


Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!