How do you change the customer invoice template in Magento 1.6

How do you change the customer invoice template in Magento 1.6

September 29, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How do you change the customer invoice template in Magento 1.6

Changing the Customer Invoice Template in Magento 1.6

As a senior developer specializing in e-commerce platforms, I often receive queries about customizing Magento templates for specific business needs. Today, let’s dive into how to modify the customer invoice template in Magento 1.6.

Understanding the Current Invoice Template

Before we begin, it’s crucial to understand that Magento uses PHTML (PHP Hypertext Preprocessor) templates to generate its frontend output. These templates are located under app/design/frontend/default/theme. In your case, you want to edit the invoice email template, which is typically found at app/design/frontend/default/theme/template/email/sales/order_invoice_email.phtml.

Identifying the Tracking Number Area

In the screenshot provided (http://deadlydash.com/magento.jpg), we can see that Magento includes a section for tracking numbers. This area is likely part of a conditional statement, checking if a tracking number exists before displaying it.

Locating the Relevant Code

To find this section in your order_invoice_email.phtml file, look for PHP code blocks that resemble the following:

<?php if ($this->getShipment()->getTrackingNumber()): ?>
    <tr>
        <th style="text-align: left; border: 1px solid #D3D3D3; line-height: 25px; padding: 7px; vertical-align: top;" scope="col">
            <?php echo $this->__('Tracking Number') ?>:
        </th>
        <td style="text-align: left; padding-left: 4px; border: 1px solid #D3D3D3; line-height: 25px;">
            <a href="<?php echo $this->getShipment()->getTrackingUrl() ?>" target="_blank"><?php echo $this->getShipment()->getTrackingNumber() ?></a>
        </td>
    </tr>
<?php endif; ?>

Editing the Template

To remove this tracking number section, simply delete or comment out the entire conditional block (everything from <?php if ($this->getShipment()->getTrackingNumber()): ?> to <?php endif; ?>).

Changing the Wording of the Email

Changing the wording involves working with Magento’s translation system. You can modify the language files found under app/locale/en_US/translate.csv. This file contains key-value pairs for all the text strings used in Magento.

To change the specific string “Tracking Number”, look for a line that begins with the following:

"Tracking Number","Tracking Number"

Replace this value with your desired new wording, such as “Order Reference Number”.

Conclusion

Editing Magento templates involves a balance of understanding PHP code and navigating the platform’s folder structure. Always remember to work on a backup copy of your theme files in case you make mistakes.

For more advanced customizations like adding dynamic content or changing the invoice layout significantly, consider seeking guidance from experienced Magento developers at Laravel Company. They specialize in complex Magento projects and can help ensure your website remains secure and performant while implementing your desired changes.

Don’t forget to test your changes thoroughly on a staging environment before deploying them to your live store. This will help you catch any potential issues before they affect your customers. Happy coding!

Magento 1 Themes Email Orders

Our network